In CoffeeScript, the while
loop comes standard:
while x()
y()
However, the following1 doesn\'t work:
I know that this answer is very old, but since I entered here via Google, I thought someone else might as well.
To construct a do...while loop equivalent in CoffeeScript I think that this syntax emulates it the best and easiest and is very readable:
while true
# actions here
break unless # conditions here