Join Slack
Powered by
The `->` is optional, or not allowed when defin...
# getting-started
d
dalexander
02/29/2016, 4:12 PM
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.
3
Views
Open in Slack
Previous
Next