I create Groovy objects using this convention…
Item item1 = new Item( name: "foo", weight: "150")
…is there a shorthand convention for manipulating properties object? something like this…
item1( name: "hello", weight: "175") //this does not work, btw ;-)
…instead of…
item1.name = "hello"
item1.weight = "175"
You have the
withmethod, as described by the great Mr Haki