Re:Brand new Scala-lang.org
by pohl on Tuesday July 30, 2013 @04:25PM
(#6129789)
Why wouldn't you be able to? That's sort of what they're getting at when they say (if you follow the link) right under the headline: "Or anything in-between."
Your discriminated unions would be "in drag" as case classes, of course. You would want to be aware of the OO parts of the language, but there's little that obligates you to use them.
Re:Brand new Scala-lang.org
by cgag on Tuesday July 30, 2013 @04:59PM
(#6130000)
I'm not sure, I haven't looked very deeply at the language, I'm not sure if most of the libraries and culture and such make use of OO, or if it's just baggage for Java interop.
Your discriminated unions would be "in drag" as case classes, of course. You would want to be aware of the OO parts of the language, but there's little that obligates you to use them.