develooper Front page | perl.perl5.porters | Postings from November 2011

Re: RFC: Autoloading charnames

Thread Previous | Thread Next
November 22, 2011 15:38
Re: RFC: Autoloading charnames
Message ID:
On Tue, Nov 22, 2011 at 03:03:35PM -0700, Karl Williamson wrote:
> It has been proposed that charnames automatically load when a \N{} is  
> seen.  That is easy to do, and I think it should load as if the :full  
> and :short options had both been specified.
> Does anyone disagree with doing this?

Not me. This has been one of my top wishes for years.

> If it is done, should the functions in the module also autoload.  That  
> is, should a line like 'my $poo = charnames::viacode(0x1F4A9)' fail if  
> charnames hasn't been 'used' or 'required' or should it cause the module  
> to load ?

Having done things automatically done for you seems to be the Perlish way.
It's quite clear what the programmer wants; I will not object to some DWIM.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About