Syntactic Confectionery Delight | |
PerlMonks |
Re^4: Recap: The Future of Perl 5by LanX (Saint) |
on Aug 29, 2018 at 17:23 UTC ( [id://1221314]=note: print w/replies, xml ) | Need Help?? |
IIRC is Ruby using sigils for @instance and @@class variables.. But JS is setting this implicitly, i.e. it's not the first argument like self in Python and Perl. You could mimic the semantics of JS and Ruby with closure variables holding references...
Cheers Rolf
updateadded references
updatePHP seems to have an implicit $this.
In Section
Meditations
|
|