
19 May
2010
19 May
'10
6:36 a.m.
Roman Leshchinskiy
Personally, I consider the Enum class itself to be broken.
Oh? In what sense? It seems to work fine for data types representing bounded enumerable values with a proper mapping to/from Int (it's not bijective since there's no proper mapping from Int -> Bool for example); the problem is the fact that Double, etc. are made instances of Enum when this is not the case for those data types. -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com