in reply to Interval Computation Module Design

If you were looking for a module to perform interval calculations where would you expect to find it?

I would be expecting it to be called Math::IntervalComputations. Conversely, I would expect that a module with that name would perform interval computations :-)

Cheers,
Rob

Replies are listed 'Best First'.
Re^2: Interval Computation Module Design
by HollyKing (Pilgrim) on Feb 21, 2006 at 02:46 UTC

    But that's so long to type! ;)

    Owl looked at him, and wondered whether to push him off the tree; but, feeling that he could always do it afterwards, he tried once more to find out what they were talking about.

      You could use the technique described in Re: use, require, and constructors to create a short name alias for your package

      package Math::Interval::Computations; ... *{MIC::} = *{Math::Interval::Computations::}; 1;

      And then your users can do

      use Math::Interval::Computations; my $icObj = MIC->new(...); ...

      Maybe Intvl->new(..) would be a better short name?


      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.
      Yeah ... you could probably get away with just Math::Interval. If the module's description specifies that it performs "interval computations" (as I'm sure it will) then anyone looking for a module to perform interval computations should find it - and should recognise immediately that it does what they want.

      The thing I like about "Math::IntervalComputations" is that the name tells you what it does. "Math::Interval" tells you nothing. If it were up to me I'd still go with "Math::IntervalComputations" .... but it's not up to me .... and that's possibly a good thing :-)

      Cheers,
      Rob

        I've expanded the documentation to include more information about intervals and how they are used.

        I used Math::Complex as the inspiration for choosing the name Math::Interval. Interval is a bad name for these things because the word has many other meanings. However, that is what they're called in the literature so I'm stuck with that name.

        Owl looked at him, and wondered whether to push him off the tree; but, feeling that he could always do it afterwards, he tried once more to find out what they were talking about.