leafo/moonscript — Issue #34: unless keyword
Author: ckknight
Created: 2012-02-19 08:46:15+00:00
State: open

Although it's pure syntactical sugar that could be handled by `if not`, sometimes `unless` would read significantly better.

unless value
value = calculate!

or

value = calculate! unless value

Could compile into

if not value then
value = calculate()
end