Thanks for sharing your experience using both approaches in two different environments.
Keld Ølykke wrote:
I find it pretty annoying in Java. They clearly made this better choice...
These two statements seem to conflict with each other. If the one approach is "pretty annoying" is it really "better?" And this is reason I raise the question: I have the same conflict internally. Which approach is "better" seems to come down to where you approach the problem from. One day I look at the problem from one perspective and one way seems "better." The next day I look at the code and say "How crappy! This way is better!" What I optimize for changes the context enough to change the answer.
Keld Ølykke wrote:
Another question, is whether to use enums or classes as arguments, but ... that is another question ;)
Yes. Yes it is. :-D