Basically, I want to have a Map indexed by type objects. In this case, I\'m trying to use Class as the \"type type\".
In some C code, I\'m defining a simple static array as a function argument, say: void foo(float color[3]);
I\'ve been hearing a lot about different JVM languages, still in vaporware mode, that propose to implement reification somehow. I have this nagging half-remembered (or wholly imagined, don\'t know whi
Is it possible to place an inequality constraint on the typevariables of a function, à la foo :: (a ~ b) => a -> b as in GHC type family docs, except inequality rather than equality?
In Pro开发者_JAVA技巧gramming in Scala, the following example is given to show how to reference a Java class with wildcards.The method javaSet2ScalaSet takes a type T.Typically, you can always explici
In Scala, the syntax for selecting a type from a class is different from that of selecting anything else from a class. In that the former uses a hash as the selection operator instead of a dot. Why is
When reading Jon Skeet\'s answer to this particular question How can I make it so my开发者_如何学编程 class variables can only be set to one of three choices? y learned something new I was not aware o
There are quite a few dynamically typed object oriented languages in which a class itself is an object. Smalltalk, and Python for example. Is there any statically typed language in which a class is an
I had this crazy idea and was wondering if such a thing exists: Usually, in a strongly typed language, types are mainly concerned with memory layout, or membership to an abstract \'class\'.So class F
Is it possible to create a type with a numeric argument? i.e. if I want to create a type of integers with a fixed bit-width: