Hacker News new | past | comments | ask | show | jobs | submit login

You can do ifs at the type level in Scala, using dependent types. The difference is that Scala draws a clear distinction between the value level and the type level. This was, after all, the original point of types (in the typed lambda calculus sense).



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: