String literal in groovy is a big advantage compare to Java. So one of my big wish is Java can add support of groovy style of string expression:
1. Multi-Line Strings :
Instead of : abc + \ndef + \nghi, we can simply put:
Abcdefghi
2. Shortcut to embedded variable in String
Such as Hello $name instead of Hello + name.
I believe these changes wont affect much in deep of the language, just the change of the source code parser. But this has great benefit for producing cleaner code. |