On Tue, Apr 05, 2005 at 08:24:42AM -0700, Larry Wall wrote:
> That's why there's a statement_control:<if>, and there's a
> statement_modifer:<if>, but there's no prefix:<if>.  If you see
> a statement modifier in the middle of an expression, it must be
> interpreted as a statement modifier regardless of the context.
> Statement modifiers are among the "most reserved" words in Perl.

Aye.  Is there an idea on how the two forms of `if` would be defined
using plain Perl 6?

> So despite the fact that return parses like a list operator and
> expects a term after it, the "if" is acting a bit like a semicolon.

Got it.  What if the user had defined a prefix form of `if`, though?
Is it resolved using the precedence table?

Thanks,
/Autrijus/

Attachment: pgpFAziW7xYzM.pgp
Description: PGP signature

Reply via email to