PROPOSAL: Return 'this' (original) (raw)

Marek Kozieł develop4lasu at gmail.com
Thu Mar 26 13:16:42 PDT 2009


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/



More information about the coin-dev mailing list