Is Groovy syntax an exact superset of Java syntax?

前端 未结 4 1848
春和景丽
春和景丽 2021-01-01 10:06

Being a Java programmer, I don\'t really have a Groovy background, but I use Groovy a lot lately to extend Maven (using GMaven). So far, I could use all the Java code I need

4条回答
  •  别那么骄傲
    2021-01-01 10:10

    There's a page on the Groovy site which documents some of the differences, and another page which lists gotchas (such as the newline thing)

    There are other things as well, one example being that Groovy doesn't support the do...while looping construct

提交回复
热议问题