Groovy web console

subscribe to the feed Subscribe
to this
site
groovyWAT (via #groovywebconsole)
tweet this snippet Tweet
this
script

groovyWAT

Published 3 weeks ago by ArmyOfEvilRobots with tags wat
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def foo(a,b="something",c="nothing"){
println("Hey $a, It's better to have $b than $c");
}

foo("Derek",, "a lobotomy");

// Hey Derek, It's better to have a lobotomy than nothing
// WHAT THE FUCK IS WRONG WITH YOU GROOVY?! GO HOME YOU'RE DRUNK!