No, because the

    if $a

from "return if $a;" doesn't match the production

    if <expression> <block> [else <block>]

I so don't want to be anywhere near the Perl6 parser...

--
 
Gordon Henriksen
IT Manager
ICLUBcentral Inc.
[EMAIL PROTECTED]


> -----Original Message-----
> From: Michael Lazzaro [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, November 18, 2003 2:06 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Control flow variables
> 
> 
> 
> On Tuesday, November 18, 2003, at 06:38 AM, Simon Cozens wrote:
> > Given that we've introduced the concept of "if" having a 
> return status:
> >
> >   my $result = if ($a) { $a } else { $b };
> >
> 
> Would that then imply that
> 
>      sub blah {
>        ...              # 1
>        return if $a;    # 2
>        ...              # 3
>      }
> 
> ...would return $a if $a was true, and fall through to (3) if it was 
> false?
> 
> 
> > [EMAIL PROTECTED] (Dan Sugalski) writes:
> >>> Luke Palmer:
> >>>> That's illegal anyway.  Can't chain statement modifiers :-)
> >> Will be able to.
> 
> I was under the strong impression that Larry had decided that 
> syntactic 
> ambiguities prevented this from happening.  (Now, of course, you will 
> ask me for a cite to the thread, which I can't even begin to find at 
> this point...)
> 
> MikeL
> 
> 


Reply via email to