develooper Front page | perl.perl5.porters | Postings from September 2022

Re: module loading built-in

Thread Previous | Thread Next
From:
Branislav Zahradník
Date:
September 16, 2022 14:44
Subject:
Re: module loading built-in
Message ID:
CAB=rbOnf6+DqjHUh2Tt+xedVX=gfEJ=QULLyDbx=UOHQkq1BSQ@mail.gmail.com
IMHO better solution will be to provide namespace specific methods, eg:
Foo::Bar::->*is_loaded
Foo::Bar::->*load

grammar rule:
NAMESPACE_LITERAL ARROW STAR method

and so on

Advantage:
- namespace methods will not pollute namespace for other methods
- namespace methods will always be prefixed with *

Best regards,
Brano

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About