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.