Re: RFC: new logical operator & more syntactic maple syrup

2002-02-22 Thread Larry Wall
Aaron Sherman writes: : On Thu, 2002-02-21 at 19:49, Larry Wall wrote: : > David M. Lloyd writes: : > : On Thu, 21 Feb 2002, Sam Vilain wrote: : > : : > : > I can't count the number of times I've had to do something like: : > : > : > : > if (defined $foo and $foo ne "bar") { } : > : > : > : > t

Re: RFC: new logical operator & more syntactic maple syrup

2002-02-22 Thread Aaron Sherman
On Thu, 2002-02-21 at 19:49, Larry Wall wrote: > David M. Lloyd writes: > : On Thu, 21 Feb 2002, Sam Vilain wrote: > : > : > I can't count the number of times I've had to do something like: > : > > : > if (defined $foo and $foo ne "bar") { } > : > > : > to avoid my program writing garbage to ST

Re: RFC: new logical operator & more syntactic maple syrup

2002-02-21 Thread Larry Wall
David M. Lloyd writes: : On Thu, 21 Feb 2002, Sam Vilain wrote: : : > I can't count the number of times I've had to do something like: : > : > if (defined $foo and $foo ne "bar") { } : > : > to avoid my program writing garbage to STDERR. : : Of course you will now be able to say: : : if ($foo

Re: RFC: new logical operator & more syntactic maple syrup

2002-02-21 Thread David M. Lloyd
On Thu, 21 Feb 2002, Sam Vilain wrote: > I can't count the number of times I've had to do something like: > > if (defined $foo and $foo ne "bar") { } > > to avoid my program writing garbage to STDERR. Of course you will now be able to say: if ($foo // "" ne "bar") { } Right? - D <[EMAIL PR

Re: RFC: new logical operator & more syntactic maple syrup

2002-02-21 Thread Sam Vilain
Aaron Sherman <[EMAIL PROTECTED]> wrote: > An off-the-wall thought... If this is not the "expected" condition, > should it have the extra meaning of an assertion? For example, > could set $! to 'defined $foo but $foo eq ""' and, if -w was in use, > issue 'warn "Exceptional condition: $!"' Intere