The `->` is optional, or not allowed when defin...
# getting-started
d
The
->
is optional, or not allowed when defining closures with no parameters (not sure which). I would guess putting a
;
after println("foo") would let the compiler know the closure isn't part of the print.