Closed
Description
An interesting proposal raised by @lehni, here:
... is to somehow combine the do
and for
keywords to give you a quick and easy way to write a loop that closes over its variables ... without hiding the fact that you're working with an implied inner function, and all of the scope changes that involves. I think it might work out nicely.
do for num in [1, 2, 3]
... becomes the equivalent of:
for num in [1, 2, 3]
do (num) ->
Any ideas?