Nathan Torkington wrote: > > > Then I think both of these should act exactly the same: > > > > somesub(@values); > > somesub = @values; > > EUGH. No way! > > Assignment should be used to reflect (get this) assignment. Using > it as argument passing is disgusting. I'm assuming you're not > *advocating* this, merely pointing out that it's a side-effect of > the RFC's suggested implementation. Not in this ridiculously trite example, no. It's silly and stupid. And misleading. However, chaining together lvalue subs is a very useful shortcut: @output = ($title, $x, $f->xml_extract) = <FILE>; Agreeably, this is not a 1:1 on the assignment front. But I'd like to be able to do this. "Disgusting" is a matter of taste. :-) As for the other arguments about "magical $LVALUE" stuff, I'm firmly against those. I am 100% behind the RFC - everything should go into @_. I just think the above is a useful extension that shouldn't be overlooked. It's really powerful. -Nate
- RFC 107 (v1) lvalue subs should receive the rvalue as ... Perl6 RFC Librarian
- Make lvalue subs the default (was Re: RFC 107 (v1... Nathan Wiger
- Re: Make lvalue subs the default (was Re: RFC... Piers Cawley
- Re: Make lvalue subs the default (was Re:... Nathan Wiger
- Re: Make lvalue subs the default (was... Andy Wardley
- Re: Make lvalue subs the default (was Re: RFC... Jonathan Scott Duff
- Re: Make lvalue subs the default (was Re:... Nathan Wiger
- Re: Make lvalue subs the default (was... Jonathan Scott Duff
- Re: Make lvalue subs the default... Nathan Wiger
- Re: Make lvalue subs the def... Nathan Torkington
- Re: Make lvalue subs the... Nathan Wiger
- Re: Make lvalue subs the default (was Re:... James Mastros
- Re: Make lvalue subs the default (was Re: RFC... Nathan Torkington
- Re: Make lvalue subs the default (was Re:... Nathan Wiger
- Re: Make lvalue subs the default (was... Nathan Torkington
- Re: Make lvalue subs the default... Nathan Wiger
- Re: Make lvalue subs the default... Graham Barr
- Re: Make lvalue subs the default (was... Chaim Frenkel
- Re: RFC 107 (v1) lvalue subs should receive the r... Piers Cawley
- Re: RFC 107 (v1) lvalue subs should receive t... Jonathan Scott Duff
- Re: RFC 107 (v1) lvalue subs should recei... Piers Cawley