Re:Python's sad, unimaginative Enum
by jedi_stannis on Saturday May 11, 2013 @02:26PM
(#5691536)
This problem is also present in Haskell and it seems to work out pretty well there
[ Parent
| on HN ]
Re:Python's sad, unimaginative Enum
by marcosdumay on Saturday May 11, 2013 @09:59PM
(#5692829)
That.
Every language solves that with a desambiguation rule. In haskell, the first matching line runs. It's no worse than the way C, Java, and family solve the if-else ambiguity, for example.