in reply to Re: Benefits of everything is an object? Or new sigils?
in thread Benefits of everything is an object? Or new sigils?
> If you keep both %employees and $employees in the same scope it would provide a (really ugly) way of keeping the original array|hash and its blessed reference
yeah indeed ugly, thats what I meant.
> I don't this is some 'problem' which requires the use of slow modules like autobox ...
Contrary to the believe of the group that flames against me, I'm not propagating autobox as an existing solution! (I was asking a question in another thread about autobox and hit the nerve of a group of united fanboys. But I'm tired to repeat this!)
I was talking about the theoretical benefits JS has over Perl in this respect, because there a hash acn be treated as object right from the beginning.
Tieing this hash provides the same functionality in Perl like altering the object in JS (Phase 2)
BTW: According to the docs, autobox isn't slower than method calls on blessed references. >or some wholesale re-invention of Perl symbology.
A Sigil for each Ref-Type would open a lot of simplifications for problems newbies face when starting to learn Perl.
Believe it or not, many people stop and hate Perl just because of these problems...long before even entering a level allowing to understand Data::AsObject and Hash::AutoHash.
Many thanx for your contribution, it's one of the better ones lifting the level of this discussion! :)
Cheers Rolf
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Benefits of everything is an object? Or new sigils?
by james2vegas (Chaplain) on Mar 04, 2010 at 21:18 UTC | |
by LanX (Saint) on Mar 04, 2010 at 23:54 UTC |