[prev in list] [next in list] [prev in thread] [next in thread]
List: groovy-user
Subject: groovy parser question
From: Ron Yang <b0b0b0b () gmail ! com>
Date: 2005-06-14 19:55:10
Message-ID: 642fabe905061412552babc0b2 () mail ! gmail ! com
[Download RAW message or body]
I was wondering if this was supposed to be valid groovy (the parser
does not accept it):
return someCollection.inject(new HashMap()) { map, row -> if
(row.property) { dothis; dothat;} return map; })
The parser prefers this:
return someCollection.inject(new HashMap()) { map, row -> if
(row.property) { dothis; dothat;}; return map; })
(note the semicolon after the penultimate close-brace)
Thanks,
Ron
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic