|
|
|
|
|
by gurkendoktor
5347 days ago
|
|
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?) |
|