News for hackers. Stuff that matters.
Re:Eclipse launches new language to cut down Java boilerplat... by gurkendoktor on Friday November 04, 2011 @07:58PM (#3198278)
On the new switch statement:

> Type guards let you switch (or match) for types, which is much nicer and less errorprone than the usual lengthy instanceof-cascades we write in Java.

Ruby can do this too, but it never seemed like a really good idea where I've seen it. The new switch() is better (equals!!), but this particular use case seems so out of place in an OO language like Java.

Using «» for interpolation is also a big jump when Eclipse still defaults to MacRoman. (Or have they changed it recently?)

There are no comments on this comment yet.