Please use this page to document all the ideas and wishes you'd like to see in Groovy.
- Support standard for statement. (Note: supported by the JSR grammar.)
e.g. for (int i = 0; i < 5; ++i)Unknown macro: {...I don't know whether the standard for statement is still not implemented till beta-10, or Groovy will not support it in 1.0 release.* *Notion of Performer* (initially developped in Smalltalk by Didier Simoneau) }def aPerformer = aTargetObject << aMethodSymbol;
aPerformer.evaluate(); // to execute later the method on an object.
The main purpose of the performer is to be used with GUI adaptors, ie the ability to define callbacks easily;
Example :
aButton.onDownClick(delegatedObject << #click); //#click is similar to the Smalltalk symbol concept representing a method
In smalltalk we can define symbols with implicit arguments, eg #click:with: defines a method with two arguments. We should find then in groovy to define easily the same concept, for instance #click(def,def) or #click(int, double)
Labels