Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: RFC - Data::DeepFilter

by Hofmator (Curate)
on Aug 23, 2006 at 09:37 UTC ( [id://569044]=note: print w/replies, xml ) Need Help??


in reply to RFC - Data::DeepFilter

I'm not too happy with the usage of the word 'filter'. For me, a filter is a device which takes input and allows only a certain part of the input to pass through, unmodified, so a part of the input is filtered out - think sieve. What you are doing is changing the elements. But, alas, I'm not a native speaker so I might be off here.

As a better alternative I would suggest 'apply'.

-- Hofmator

Replies are listed 'Best First'.
Re^2: RFC - Data::DeepFilter
by revdiablo (Prior) on Aug 23, 2006 at 17:05 UTC
    But, alas, I'm not a native speaker so I might be off here.

    No, as a native speaker, I think you're dead on. When I think of a filter, I think of Perl's builtin grep, not its builtin map. Incidentally, Data::DeepApply sounds a bit odd. Maybe Data::Apply::Deeply. But then that makes me think it would be even better if it was Data::Massage::Deeply. =)

      Part of me wanted to write it as an extension of Data::Walk, and name it Data::Walk::COW - because it amused me. But the interface wasn't quite what I was looking for.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://569044]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-20 15:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found