type-systems
How is the type of `([] ==) []` inferred haskell?
It sounds silly, but I can\'t get it. Why can the expression [] == [] be typed at all? More specifically, which type (in class Eq) is inferred to the type of list elements?[详细]
2022-12-31 11:37 分类:问答Returning the same type the function was passed
I have the following code implementation of Breadth-First search. trait State{ def successors:Seq[State][详细]
2022-12-30 17:44 分类:问答F# return type coercion
In F# I have a function that returns System.Linq.Expression instances: and System.Object with member this.ToExpression() 开发者_如何学JAVA=[详细]
2022-12-30 03:12 分类:问答Can one create Sized Types in Scala?
Is it possible to create types like e.g. String(20) in scala? The aim would be to have compiler checks for things like:[详细]
2022-12-26 20:54 分类:问答Why is there "data" and "newtype" in Haskell? [duplicate]
This question already has answers here: Difference between `data` and `newtype` in Haskell (2 answers) Closed 8 years ago.[详细]
2022-12-26 19:57 分类:问答Accessing type members outside the class in Scala
I am trying to understand type members in Scala. I wrote a simple example that tries to explain my question.[详细]
2022-12-23 16:25 分类:问答Do all programming languages have a clear concept of NIL, null, or undefined?
I am writing a key value store API (like ODBC, just the interface, not the underlying store) in many different languages and while I do not want to transliterate the API between languages, I do not wa[详细]
2022-12-21 05:57 分类:问答Which languages are dynamically typed and compiled (and which are statically typed and interpreted)?
In my reading on dynamic and static typing, I keep coming up against the assumption that statically typed languages are compiled, while dynamically typed languages are interpreted. I know that in gene[详细]
2022-12-20 23:44 分类:问答Java generics + static factory methods = [panic]
I thought, I would understand Java generics by now. But now I\'m helpless again. I have a generic class where a c-tor constructs correctly-typed instance, while a static factory method produces a typ[详细]
2022-12-20 17:52 分类:问答What is the difference between Latent type and Manifest type?
Could someone give me a clear dis开发者_StackOverflow社区tinction between latent and manifest type system?Sometimes, the same concept gets invented independently in different areas of computer science[详细]
2022-12-14 21:53 分类:问答