Quoted:
-------------------------
In this first beta, we obviously included all the bug fixes and minor
enhancements from the 1.7 branch. And we've been working on new features as
well:
- closures are now "callable" (inheriting from
java.util.concurrent.Callable)
- new AST transformations like
- @Log to inject a logger in your classes
- @ScriptField for creating a field in a script (should be renamed to
@Field in the next beta)
- @PackageScope now working also on methods and classes (not just
fields as before)
- @Synchronized for providing safer synchronization semantics
- @InheritConstructors to inherit constructors, like often the case
when extending exception classes
- @IndexedProperties to add JavaBeans indexed property support
- @AutoClone providing automatic cloning support to your beans
- @AutoExternalize providing automatic externalization of your POGOs
- @Canonical adding proper equals(), hashCode(), toString() methods
- @EqualsAndHashCode adding an equals() and hashCode() method
- @ToString for creating a default readable toString() method
- @TupleConstructor for adding a tuple constructor
- an additional syntax for strings, with $/.../$, to circumvent various
escaping corner cases, like for example $/a/b\c$$ $//$
- new GDK methods like Map.countBy{}, Map.collectEntries{}, Date.putAt()
(subscript operator), Date.updated()
- + obviously all other incremental improvements and new features from
the Groovy 1.7 branch like
- the new String methods like tr(), stripMargin(), stripIndent(),
(un)expand(),
- Map's withDefault{} method,
- Closure's ncury() and rcury()
- Sql's withBatch{} and withTransaction{}
A feature I'd also like to highlight in particular is "closure annotation
parameters".
----------------------------
More details on
http://groovy.dzone.com/announcements/groovy-174-and-180-beta-1
--
You received this message because you are subscribed to the Google Groups
"tellurium-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/tellurium-users?hl=en.