Groovy as List Question -


i ran across bit of code , me seems not needed there reason following

def answers = [] list 

instead of

def answers = [] 

in groovy thought [] empty list there no need have list

no, there no difference, both create arraylist , list (java.util.list) interface anyway.


Comments

Popular posts from this blog

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -