On Thu, 2003-12-18 at 14:11, A. Pagaltzis wrote:
> I do, because for simple one-off uses, the standard mechanism
> requires too much baggage. Sometimes I'd like to use tieing in a
> 10-line script; not having to create a package and populate it
> with a half dozen subs, which is alone 15 lines of red tape -
> that would be neat.
> 
> But then, this is Tie::Filter, not Tie::Simple, and I agree it
> doesn't really fall in the scope of this module suite.

Well, unless I have need for or have some spare time, I think I'll stick
to just Tie::Filter for now. ;)

> You could DWIM on the type of variable you're tying to (or the
> type of variable you're wrapping, which is the same), so people
> could just say 'Tie::Filter' and have their variables tied to an
> object of the right class.

I must confess that I was not aware of the term DWIM. Thank goodness for
the Camel book and thanks again goes out to Christiansen, Wall, Orwant,
and Schwartz.

I think that's an excellent idea.
 
> I like them better as well, but I think (in|de)flate is too
> specific considering the generic nature of these filtering tie
> modules. I can't think of any better terminology of my own; maybe
> it would be best to simple reuse the names we're already familiar
> with in Perl: (FETCH|STORE)(KEY|VALUE)?.

Hmmm...I think you are right about INFLATE/DEFLATE being too specific.
Though, I'm not certain I like FETCH/STORE either as these are not the
operations being performed. As a parallel to DBM filters, I just looked
at their names again and they are: filter_(fetch|store)_(key|value). So,
your suggestion fits to an extent. To carry the parallel the rest of the
way we have FILTER(FETCH|STORE)(KEY|VALUE)?. But the names we get are
hideous. A better solution than this would be
FILTER_(FETCH|STORE)(KEY|VALUE)? as our brains can still process that in
a quick scan. Still, I don't like it.

I think I'll use the names (FETCH|STORE)(KEY|VALUE)? anyway as I don't
like the names that start with FILTER_. Anyone object? I could do it
both ways, TMTOWTDI, but I don't know if that's appropriate either.

I'm actively working on this project right now, but won't be ready to
post it on CPAN until at least tomorrow afternoon. Due to the wonders of
:%s/// in Vim, I can change anything until then if the consensus is
different.

I really appreciate all the help.

Cheers,
Sterling
-- 
<>< ><> <>< ><> <>< ><> <>< ><> <>< ><> <>< ><> <>< ><> <>< ><> <>< ><>
  Andrew Sterling Hanenkamp
  http://Andrew.Sterling.Hanenkamp.com/
  [EMAIL PROTECTED] / [EMAIL PROTECTED]

  "When an opponent declares, 'I will not come over to your side,' I
  calmly say, 'Your child belongs to us already...What are you? You will
  pass on. Your descendants, however, now stand in the new camp. In a
  short time they will know nothing else but this new community.'"
                         -- Adolf Hitler, on public education.

Reply via email to