Interesting or unique types encountered?
- by user318904
What is the most strange or unique type you have seen in a programming language?
I was thinking the other day about a "random variable", ie whenever it is evaluated it yields a random value from some domain. It would require some runtime trickery.
Also I bet there can be some interesting mapping of regular expressions into a type system.
It does not necessarily have to be a built in or primitive type, but some random class that implements a domain specific type won't really be interesting just unique.