Re:Scala – 1 Star – Would Not Program Again
by luikore on Monday December 02, 2013 @12:48AM
(#6831940)
Rich type system? Can Scala express {x|x is integer, x >= 3} as a type? ATS can. We can even transform this set into unsigned types in C/C++, but in JVM there's no primitive simple way.
[ Parent
| on HN ]
Re:Scala – 1 Star – Would Not Program Again
by gclaramunt on Monday December 02, 2013 @09:11AM
(#6833692)
yes, it can.
It ugly, because you're doing type level programming, but is possible
http://apocalisp.wordpress.com/2010/06/08/type-level-program...