perl-unicode

Encode API

2002-04-10 00:48:00

( don't know if this is the correct mailing list to throw this to -- pls
feel free to redirect me to the appropriate parties )

I just took a look at the latest Encode API, and I think it looks very
nice. One gripe I have is, though, that the API consists of such simple,
oft-used function names, which seem to be exported by *DEFAULT*.

I suspect that there are a lot of us out there who don't necessarily
welcome this namespace pollusion. Couldn't it at least be in @EXPORT_OK,
or somehow provide a pseudo OO-ish interface like some other modules?

i.e.

   use Encode qw/ encode /;
   encode( ... );

or

   use Encode;
   Encode->encode( ... )

I think that at least there should be a choice to export/not export
these symbols.

--d

<Prev in Thread] Current Thread [Next in Thread>