Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

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) {...
    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) : _
    The idea is have a means to define a delayed message sending to an object. It is quite similar to a block which is evaluated later, but under the form of an object._
    The chosen syntax defined by Didier was_
    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
  • No labels