News for hackers. Stuff that matters.
Re:Kotlin: A statically-typed language that compiles to JVM ... by pron on Monday November 11, 2013 @07:36AM (#6711274)
Can you write any program with only case classes and sealed traits? Yes; Haskell does it. Can you write any program with just structural types? Yes, JS does it. Can you write any program with just inheritance types? Yes, Java, C++ and C# do it. Ergo, Scala has three type systems, and it doesn't matter whether you make them appear as one.

> It's all part of the same system; whether you call it an "ADT" or a "class hierarchy" is a design pattern thing more than a rigid systemic property.

Obviously it's part of the same system, which just happens to be a superset of three type systems. A type system is not how its implemented but what it does.

Re:Kotlin: A statically-typed language that compiles to JVM ... by kenbot on Monday November 11, 2013 @05:13PM (#6714446)
You can write any program with a Turing machine. That's a silly definition of a type system. I've never heard this usage anywhere else.