curious about this... I'm an old-timer so when I build a string with variable content I use "string" + var + "string" and it works just fine. All the code out here I see use dollar squigglies.. Whats up with that? I hate typing that...
Generally speaking. you can omit the braces for a simple variable reference. A method reference or any expression requires the braces.
2 Likes
thanks, i sorta get it, its just groovy making code more complicated to understand. but i'm not dealing with all kinds of strange object references when i build my strings just other string vars so I'm sticking with +++