Paul "LeoNerd" Evans
2024-11-18 09:57:21 UTC
On Sun, 17 Nov 2024 20:07:29 -0500
discussion, but in fact as it stands, `local` doesn't even allow the
first thing. My `Syntax::Keyword::Dynamically` does, though.
https://metacpan.org/pod/Syntax::Keyword::Dynamically
At least, that's all possible with Object::Pad and various other
modules right now. Has been for years.
https://metacpan.org/pod/Object::Pad#Syntax%3A%3AKeyword%3A%3ADynamically
Things like Object::Pad::Keyword::Accessor have been around for a while
too, to experiment with more interesting behaviours:
https://metacpan.org/pod/Object::Pad::Keyword::Accessor
Plus there's the years-old Sentinel which massively predates even
Object::Pad and has allowed it for a decade or so:
https://metacpan.org/pod/Sentinel
Not wanting to sound like a broken record on this, but these sorts of
features have been around in CPAN modules for a long time now, and if
more people knew about and used them, then porting the ideas to core
would be a much simpler matter of just copying the well-known well-used
module. That process worked for Syntax::Keyword::Try, but it seems less
so for a lot of these other ideas.
I don't entirely know why.. :(
Would local still DWIM in this case? If so then I’m gonna totally
re-evaluate my previous complaints about lvalue accessors.
I don't see why not. I mentioned `local` earlier to simplifyre-evaluate my previous complaints about lvalue accessors.
discussion, but in fact as it stands, `local` doesn't even allow the
first thing. My `Syntax::Keyword::Dynamically` does, though.
https://metacpan.org/pod/Syntax::Keyword::Dynamically
At least, that's all possible with Object::Pad and various other
modules right now. Has been for years.
https://metacpan.org/pod/Object::Pad#Syntax%3A%3AKeyword%3A%3ADynamically
Things like Object::Pad::Keyword::Accessor have been around for a while
too, to experiment with more interesting behaviours:
https://metacpan.org/pod/Object::Pad::Keyword::Accessor
Plus there's the years-old Sentinel which massively predates even
Object::Pad and has allowed it for a decade or so:
https://metacpan.org/pod/Sentinel
Not wanting to sound like a broken record on this, but these sorts of
features have been around in CPAN modules for a long time now, and if
more people knew about and used them, then porting the ideas to core
would be a much simpler matter of just copying the well-known well-used
module. That process worked for Syntax::Keyword::Try, but it seems less
so for a lot of these other ideas.
I don't entirely know why.. :(
--
Paul "LeoNerd" Evans
***@leonerd.org.uk
http://www.leonerd.org.uk/ | https://metacpan.org/author/PEVANS
Paul "LeoNerd" Evans
***@leonerd.org.uk
http://www.leonerd.org.uk/ | https://metacpan.org/author/PEVANS