Author: larry
Date: Tue Apr 17 11:22:38 2007
New Revision: 14376
Modified:
doc/trunk/design/syn/S04.pod
doc/trunk/design/syn/S05.pod
Log:
Note that unless no longer allows an else
Clarification of binding semantics of if, elsif, and else
Clarification of C... requested by moritz++
Author: larry
Date: Tue Apr 17 11:26:03 2007
New Revision: 14377
Modified:
doc/trunk/design/syn/S04.pod
Log:
Neglected to mention that unless also allows binding of its false parameter
Modified: doc/trunk/design/syn/S04.pod
On 4/17/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Note that unless no longer allows an else
Hmm, that's interesting. I don't _think_ I'm opposed, but maybe I am.
The main case that I can see this limiting me is where I like to put
my error conditions at the end of my code, out of the
LP == Luke Palmer [EMAIL PROTECTED] writes:
LP On 4/17/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Note that unless no longer allows an else
LP Hmm, that's interesting. I don't _think_ I'm opposed, but maybe I am.
LP The main case that I can see this limiting me is where I like to
On Tue, Apr 17, 2007 at 11:22:39AM -0700, [EMAIL PROTECTED] wrote:
Note that unless no longer allows an else
I'm sorry to see this.
This is one item from PBP that I don't really agree with.
Personally, I find I am at least as likely to make mistakes
about the double negative in if (!cond) ...
On behalf of the Parrot team, I'm proud to announce Parrot 0.4.11
Tax Bird. Parrot (http://parrotcode.org/) is a virtual machine aimed
at running all dynamic languages.
Parrot 0.4.11 can be obtained via CPAN (soon), or follow the
download instructions at http://parrotcode.org/source.html.
For
[EMAIL PROTECTED] wrote:
+
+The value of the conditional expression may be optionally bound to
+a closure parameter:
+
+iftesta() - $a { say $a }
+elsif testb() - $b { say $b }
+else - $b { say $b }
I'd prefer it if the result of a test in an if or elsif were usable
On Tue, Apr 17, 2007 at 07:34:38PM -0400, Joe Gottman wrote:
: [EMAIL PROTECTED] wrote:
: +
: +The value of the conditional expression may be optionally bound to
: +a closure parameter:
: +
: +iftesta() - $a { say $a }
: +elsif testb() - $b { say $b }
: +else - $b { say $b