Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Minor improvements to grammar/style of first paragraph

As a A Java developer embarks embarking on a Groovy adventure , he/she always has will always have Java in mind, and will progressively learn Groovy, a one feature at a time, making him becoming more productive and writing more idiomatic Groovy code. This document's purpose is to guide such a developer along the way, learning teaching some common Groovy syntax style, learning new operators, and new features like closures, etc. This guide is by no means extensive, but only serve not complete and only serves as a quick intro , and a base for further guideline sections , should you feel like contributing to the document and enhance enhancing it.

No semicolons

When coming from a C / C++ / C# / Java background, we're so used to semicolons, that we put them everywhere. Even worse, Groovy supports 99% of Java's syntax, and sometimes, it's so easy to paste some Java code into your Groovy programs, and you end up with tons of semicolons everywhere. But... semicolons are optional in Groovy, you can omit them, and it's more idiomatic to remove them.

...