I.e. calling methods like functions inside a block which defines the target object and avoids redundancy.
See also http://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Statements/with
NB many listed contras are JS / implementation specific.
AFAIK it's kind of a (pseudo) DSL technique in Ruby to call methods with syntactic sugar (though I'm ignorant about the implementation there)
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
In reply to Re^2: Perl OOP Function Entrance (with)
by LanX
in thread Perl OOP Function Entrance
by Mano_Man
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |