History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: GROOVY-1543
Type: New Feature New Feature
Status: Reopened Reopened
Priority: Major Major
Assignee: Jochen Theodorou
Reporter: Graeme Rocher
Votes: 1
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
groovy

Support multiple declarations at once: def a,b = 1,2

Created: 02/Nov/06 06:08 AM   Updated: 23/Apr/08 02:14 AM
Component/s: syntax
Affects Version/s: None
Fix Version/s: 1.6

Time Tracking:
Not Specified

Issue Links:
Duplicate
 
Related
 


 Description  « Hide
We should support multiple declarations at once:

def a, b = 1,2

Or more advanced

def a, b = [1,2,3], [4,5,6]



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Paul King - 06/Jan/08 01:46 AM
Some overlap with GROOVY-158 but not quite the same - leaving both open for now.

Jochen Theodorou - 22/Apr/08 07:13 AM
should work now

Paul King - 22/Apr/08 06:28 PM
Isn't that the difference between GROOVY-158 and this issue?

Currently we allow:

def a, b
[a, b] = [[1,2,3], [4,5,6]]

but this issue wants:

def [a, b] = [[1,2,3], [4,5,6]]

which we don't allow?


Jochen Theodorou - 23/Apr/08 02:13 AM
ah, ok, didn't see that

Jochen Theodorou - 23/Apr/08 02:14 AM
but I doubt we can have this in 1.6