Groovy, a Java-like Scripting Language
One of the main features of Groovy is that it is very easy for
Java programmers to learn. The
Groovy FAQ
explains:
"One of the main design goals of Groovy is to be a scripting language for Java developers to use. So we wanted to reuse both Java's semantics and the whole set of J2SE APIs rather than introduce a port of a different language with different semantics and APIs to learn and implement/maintain.
"
Some of the basic features of Groovy include:
- It is a JRE-compliant scripting language.
- It is an agile development language.
- The core syntax is based on Java.
- It supports existing Java objects and libraries.
- Groovy is interpreted, compilation is performed at run time.
- It supports command line operation.
- Variables are dynamically typed.
- Tuples, lists, maps, and closures are part of the basic syntax.
- Closures are used for passing blocks of executable code.
- Regular expressions are supported with ~"..." expressions.
- Groovy provides operator overloading capabilities.
- GroovyMarkup for native support of XML, HTML, SAX and other markup languages.
- The GPath path expression language.
- Support for writing Java servlets (Groovlets).
- GroovySql for working with SQL databases.
- GroovyBeans, a simplified interface to Java Beans.
- The Groovy Template Engines provide a templating framework.
- Groovy supports scripting in Ant.
If you are interested in learning more about Groovy, take a look at
Andrew Glover's introductory article on IBM's developerWorks entitled
Feeling Groovy.
