Hacker News new | ask | show | jobs
by gavinking 4022 days ago
No, because that pattern is still strictly more powerful. With enumerated classes I can have cases which are a class rather than just a singleton instance.