class X::Syntax::UnlessElse

Compilation error due to an unless clause followed by else
class X::Syntax::UnlessElse does X::Syntax { }

Syntax error thrown when an unless clause is followed by an else clause.

For example

unless 1 { } else { };

dies with

===SORRY!===
"unless" does not take "else", please rewrite using "if"

The Camelia image is copyright 2009 by Larry Wall. "Raku" is a trademark of the Yet Another Society. All rights reserved.

Built with Podlite β€” the markup and publishing tools behind this site.