Re: Help w/ naming module

[email protected] (Diab Jerius)
Newsgroups perl.module-authors
Message-ID <CADpyd5Dnux84CV=VhG3u=vefb0BSWEWAwZN58YXzYP+uxsnBSw@mail.gmail.com>
On Thu, Sep 21, 2017 at 1:58 PM, Diab Jerius <[email protected]>
wrote:
>
>
>
> On Thu, Sep 21, 2017 at 12:59 PM, Diab Jerius <[email protected]>
wrote:
> >
> >
> >
> >
> > On Thu, Sep 21, 2017 at 11:30 AM, Michael Greb <[email protected]>
wrote:
> >>
> >> On 09/20, Diab Jerius wrote:
> >> > I've written a module[1] to scratch an itch, namely easily wrapping
hashes
> >> > returned from subroutines as objects[2].
> >> >
> >> > I've named it Return::Object, based on my particular use case, but
I'm
> >> > finding it useful for more general wrapping of hashes, hence my
quest for a
> >> > more general name for it.
> >>
> >> There seems to be a fair number of not directly connected modules
under the
> >> Data::Hash namespace.  I think placing your module alongside these
makes sense
> >> so something like Data::Hash::AsObject, Data::Hash::Object, or the
like  may
> >> be fitting.
> >>
> >> Mike Greb
> >> mikegrb
> >
> >
> >
> > Here's my current list of "almost but not quite" modules:
> >
> > Object::Result
> > Hash::AsObject
> > Data::AsObject
> > Class::Hash
> > Hash::Inflator
> > Hash::AutoHash
> > Hash::Objectify
> >
> > I'll look at the Data::Hash namespace and see what's there for
comparison.
> >
>
> According to CPAN, the Data::Hash namespace only has four modules (!?).
That's a surprise.
>
> Data::Hash::DotNotation
> Data::Hash::Transform
> Data::Hash::Totals
> Data::Hash::Flatten
>
>

After visiting more of CPAN's dusty corners, and considering that most
similar modules are in the Hash:: namespace, I'm leaning towards
Hash::Wrap.  My colleagues seem to think that has something to do with hash
(in the culinary sense) and wonton wrappers. Middle of the afternoon here.
Maybe they're hungry.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.