Interesting or unique types encountered?

Posted by user318904 on Stack Overflow See other posts from Stack Overflow or by user318904
Published on 2010-12-24T06:14:41Z Indexed on 2010/12/24 9:53 UTC
Read the original article Hit count: 170

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.

© Stack Overflow or respective owner

Related posts about programming-languages

Related posts about types