I agree with you here Andreas. It adds more complexity. It is a
smalltalk idiom, but is that reason enough?

Kent

On Fri, 2006-03-24 at 15:22 +0100, Andreas Ecker wrote:
> Howdy!
> 
> yozzeff wrote:
> 
> >>The general set() does already return this for this kind of convenience.
> >>Your syntax seems not to be ok dur to missing parenthesis. Try
> >>
> >>aPane.add((new QxAtom('Label')).set({left: 0, width: '35%', top: 3}));
> > 
> > thats fine. but wouldnt it be really nice to return it always if
> > your method doesnt return anything else. its been a very powerful
> > smalltalk idiom for decades.
> 
> Are you talking about *any* methods that currently do not explicitly 
> return values (returning "undefined" being the default)? Supporting the 
> Smalltalk idiom would mean to add "return this" anywhere a return is 
> missing?
> 
> Not sure about the implications. It's an idiom that Smalltalk users 
> would be familiar with, but other developers (Java, etc.) would not expect.
> 
> Currently, I don't think it's without problems. What do others think?
> 
> Andreas
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
> Qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to