Re: pbr vs multiple returns

new topic     » goto parent     » topic index » view thread      » older message » newer message

Matt Lewis wrote:
> 
> Chris Bensler wrote:
> > > }}}
<eucode>
> > >   {x,y}@="chris"
> > > </eucode>
{{{

> > 
> > What's wrong with repeat() ?

Good catch.
> 
> I think what Pete is talking about is kinda the complement (reverse? 
> whatever) of repeat().  He's taking one thing and assigning it to several
> things with a single statement.  It's just syntactic sugar, compressing
> things into a single statement.  Personally, I don't see that it adds
> very much, and would vote to keep it out at this point.
> 
Agreed. More than anything else I was, erm, reserving the "@=" notation.
Still something for much later, but I agree with Chris that repeat would be fine
for the same reasons as returning a sequence of multiple results, and could even
be recognised by the parser, so the repeat statement need never actually be
performed.

Regards,
Pete

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu