3 ms·
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 le
by lmm 11y ago
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).