On Thu, 21 Feb 2002 06:50:13 -0600
[EMAIL PROTECTED] wrote:

> On Thu, Feb 21, 2002 at 12:30:11PM +0000, Sam Vilain wrote:
> > I think Perl 6 should have a "but" keyword, as in:
> > if (defined $foo but $foo eq "") {
> *scratches head*
> so... it negates the left side, then ANDs it with the right?

No, "but" is syntactically equivalent to "and" in English.  It just
implies that the second condition is not generally what you'd expect if
the first was true.

Complete syntactic sugar :)

Sma.

Reply via email to