Search This Blog

Tuesday, February 8, 2011

groovy: use brackets on method calls or not?

Programmer Question

hi all,



this is a fairly general question about whether people should be using brackets on method calls that take parameters or not.
i.e.



def someFunc(def p) {
...
}


then calling:



someFunc "abc"


vs...



someFunc("abc")


Is this just a question of consistency, or is there specific use cases for each?



Find the answer here

No comments:

Post a Comment

Related Posts with Thumbnails