In CoffeeScript, the while comes standard:
while x() y()
However, the following 1 does not work:
do y() while x()
And this is just sugar for the first example:
y() while x()
Does CoffeeScript have a built-in loop that runs at least once?
1 As an alternative, do is a keyword - it is used to call anonymous functions.
coffeescript
ClosureCowboy May 19 '11 at 1:49 am 2011-05-19 01:49
source share