![]() |
|
There's more than one way to do things | |
PerlMonks |
Re: What esteemed monks think about changes necessary/desirable in Perl 7 outside of OO staffby Perlbotics (Bishop) |
on Sep 10, 2020 at 19:24 UTC ( #11121570=note: print w/replies, xml ) | Need Help?? |
I would barter all of these improvements for a less noisy but performant elemement accessor syntax: i.e.
becomes something like: or something smarter... Disambiguation: If the actual element is blessed and can('method1'), it is invoked. Otherwise it is treated as a function call (:: might be used for further disambiguation). I.e. similar to Data::Diver, just more efficient together with a pragma or other method to control auto-vivification. Yes, I am aware, that I could build something similar as a module, but it would be pure Perl.
In Section
Meditations
|
|