Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Sub-Exporter CPAN distribution.

Report information
The Basics
Id: 69948
Status: rejected
Priority: 0/
Queue: Sub-Exporter

People
Owner: Nobody in particular
Requestors: AARONRP [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: Attributes
Thank you for writing Sub::Exporter. I really appreciate its power. I thought I'd throw this out there, even though it's not a bug or anything. Maybe it'll seem like a good idea, or maybe not. The only thing I wish Sub::Exporter had is support for an Export attribute, like Perl6::Export::Attrs, which lets me do sub foo :Export { ... } but which, in so many other ways, isn't as powerful as Sub::Exporter. I tried to look at Perl6::Export::Attrs to figure out how to do this, but haven't worked with attribute handlers and was unclear as to how to put everything in at the right compile phase. Thanks for reading this.
Sorry for this very delayed reply, especially because it's not particularly positive. Attributes seem very nice when you think about using them, but implementing things that use them stinks. They're sort of a mess. I would rather not deal with them. That said, I believe it could be done. If you do it, I would be interested to see the code that results! Again, my apologies for the long delay. -- rjbs