Why Scala doesn't have enum type and what are benefits of current design? -


what reason why decided not implement enum type in scala ? benefits of current language design (defining object , extending scala.enumeration instead of creating new enum type ) ?

i don't see reasonable benefits of enumeration in it's current state , tend think design flaw scala community trying overcome. not easy, guess done in next 2 major scala versions. in scala code i've seen sealed object hierarchy given preference.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

mysql - Pass value between different pages (form) with PHP -