|
[
Permalink
| « Hide
]
Paul King added a comment - 16/Oct/07 08:28 AM
Indeed. Not only does Java allow the class name to be dropped, it requires it:
for now we require the class name in Groovy, because enums are not imported by default. It would differ to much from java. You can have the switch-case you showed if you add a static import like "import static Fruit.*". I guess that additional line is not too much of a problem
|
|||||||||||||||||||||||||||||||||||||||||||||||