Do you know where your variables are? | |
PerlMonks |
Re: Re: Re: Thoughts on some new operators for perl (6 or 7)by Juerd (Abbot) |
on Mar 10, 2004 at 14:26 UTC ( [id://335453]=note: print w/replies, xml ) | Need Help?? |
.= doesn't make sense for its new purpose If you can't imagine a function for it, it automatically does not make sense? It could very well become a mutator for objects. As $foo += 5 equals $foo = $foo + 5, $foo .= lc could equal $foo = $foo.lc. Especially for @foo.sort and @foo.=sort, this would be great to have. I've been wanting mutating and non-mutating versions of builtins for a while now, and this seems to me a good way to do it. See also Re: Re: What should be returned in scalar context?. Does it make sense now? Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }
In Section
Meditations
|
|