in reply to Re: Perl OOP Function Entrance
in thread Perl OOP Function Entrance
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!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Perl OOP Function Entrance (with)
by AnomalousMonk (Archbishop) on Aug 29, 2017 at 03:07 UTC | |
by LanX (Saint) on Aug 29, 2017 at 13:26 UTC |