The Crystal Programming Language Forum

Is it possible to remove unless keyword?

The unless keyword will never be removed, no matter what.

11 Likes

It is still inferior than if, because we can’t do:

unless X
  ...
else unless Y
  ...
else
  ...
end

Also, unless could be a macro, which expands to if !({{expr}}).

Nope, macros require a do.

1 Like