On 3 September 2014 20:15, Paul "LeoNerd" Evans <leonerd@leonerd.org.uk> wrote: > On Wed, 3 Sep 2014 20:00:36 +0200 > demerphq <demerphq@gmail.com> wrote: > > > OTOH, having reftype() and blessed() be fast IMO would be really nice. > > > https://github.com/Scalar-List-Utils/Scalar-List-Utils/tree/pevans-custom-ops > > My blessed() is /faster/ than defined. > > That is nice, but blessed() gets called a fraction of the time reftype() does. And that one you cant save. Or well, I guess you could sortof. You could support both interfaces, and allow people to import either into their namespace as "reftype", but I don't think you can safely retrofit it. For that reason, and the reason that I think its silly to have to load an object file to get stuff that is most definitely already inside Perl. There is a big picture here too. There are a collection of relatively useful functions which allow one to do useful things with our various types. Unfortunately, they dont live in the same packages, and there is no really good organization for them. Knowing what they are, and which to use is part of the process of become a perl wizard. I personally think creating well defined namespaces for them, possibly using namespaces normally reserved for perl pragmatta, and cleaning up and reorganizing them would be to the benefit of us all. The ones I can think of are: utf8::* re:* Encode:: UNIVERSAL Scalar::Util List::Util List::MoreUtil Hash::Util Maybe more. I think that is a mess. Yves -- perl -Mre=debug -e "/just|another|perl|hacker/"Thread Previous | Thread Next