Re: set attribute return values

[email protected] (Joshua N Pritikin)
Newsgroups perl.loop
Message-ID <[email protected]>
On Thu, Feb 10, 2000 at 03:37:32PM +0100, [email protected] wrote:
> > All the attributes are the same.  What do you want $w->prio(6) to
> > return?  The old priority or the new priority?  Is it really worth the
> > trouble of returning anything?
> 
> A feature of Perl I really like is that it works in expressions. An operation
> supplies something, a statement supplies something, a block supplies something
> and so forth. This is VERY useful to nest statements and write compact
> programs. (This was already well implemented in C, but even better in Perl.)
> Now, here is a method that replies nothing - in certain circumstances. :-( I
> like nesting and conciseness. I suggest to reply the new value. It's no really
> new information at this point, of course, so someone may prefer the old one,
> but I personally think this would be less intuitive.

OK, it's on the TODO list, but I'm not feeling an urgent need to
implement it.  Perhaps I will implement it before v1.0...

-- 
"Never ascribe to malice that which can be explained by stupidity."
                            via, but not speaking for Deutsche Bank
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.