the must in every language, teh hello world
nothing more than this.
make it more complicate
and command
And the "def" gives a little more clarity,
other than in PHP,where every varibale, you write $abc or $abd
are varibales implizit declared.
println "hello World"
nothing more than this.
make it more complicate
def hello="hello"Put this in a file hello.groovy
def world="world"
println hello+" " +world
println "$hello $world"
and command
groovy hello.groovySo nice feature,
no ;
no main
no $ (only in the strings)
no () after the function println, as long, as all is cllear enough
And the "def" gives a little more clarity,
other than in PHP,where every varibale, you write $abc or $abd
are varibales implizit declared.
No comments:
Post a Comment