Discussion:
Feedback on perlclass
(too old to reply)
Paul "LeoNerd" Evans
2024-11-18 09:57:21 UTC
Permalink
On Sun, 17 Nov 2024 20:07:29 -0500
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 simplify
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
2024-11-18 16:05:53 UTC
Permalink
On Mon, 18 Nov 2024 12:12:17 +0100
I would expect this to be a typical marketing problem.
Oh I'm sure I'd be the first to admit I'm terrible at this. I have no
idea *where* to tell people about things that exist.

I can write emails here saying "Hey folks, these things exist", but
that doesn't seem to catch the bulk of users. I'm sure this is
something other people could help me a lot with.
So, from your perspective, what are the various pathways in which you
would have expected perl developers to have heard about ::Dynamically?
I don't really have any expectations, I don't know where people go to
look for such things. See above.
--
Paul "LeoNerd" Evans

***@leonerd.org.uk
http://www.leonerd.org.uk/ | https://metacpan.org/author/PEVANS
Loading...