Hacker News new | ask | show | jobs
by gavinking 4022 days ago
The equivalent of Scala's case classes is an enumerated class with an "of" clause. Constructors aren't really relevant here, AFAICT.