By jsugrue
via groovy.dzone.com
Published: Nov 08 2009 / 18:06
Like Javascript, semicolons are optional in Groovy except for when they aren't optional. These examples are both pretty contrived, though I found both because they're actually something that I've written, and could both be written better. That's not really the point I'm making though. When something doesn't compile when it looks like it clearly should sometimes it's hard to track down why, and it's surprising to learn that it's because you need a semicolon.
Add your comment
Voters For This Link (15)
-
jsugrue -
mswatcher -
igobranco -
matt -
aclarke -
glaforge -
xymor -
BartGatsby -
pashimito -
biehl -
alashcraft -
LudoA -
KennyJ -
Restinest -
paulk_asert