PROPOSAL: Return 'this' (original) (raw)
Marek Kozieł develop4lasu at gmail.com
Thu Mar 26 13:16:42 PDT 2009
- Previous message: PROPOSAL: Return 'this'
- Next message: PROPOSAL: Return 'this'
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
W dniu 26 marca 2009 19:30 użytkownik Gabriel Belingueres <belingueres at gmail.com> napisał:
Wouldn't it be simpler to add a Pascal-like "with" statement? This would solve at least the method chaining issue:
with(object) { method1(); metohd2(); ... methodN(); }
Simpler? Yes.
Better? No. this would look like method execution from current class. This would be better: with(object) { .method1(); .metohd2(); ... .methodN(); }
Other problem are lines, this solution use n+2 lines: it's exactly kind of problem that people want to prevent.
-- Pozdrowionka. / Regards. Lasu aka Marek Kozieł
http://lasu2string.blogspot.com/
- Previous message: PROPOSAL: Return 'this'
- Next message: PROPOSAL: Return 'this'
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]