in reply to Re: Interval Computation Module Design
in thread Interval Computation Module Design

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.

  • Comment on Re^2: Interval Computation Module Design

Replies are listed 'Best First'.
Re^3: Interval Computation Module Design
by BrowserUk (Patriarch) on Feb 21, 2006 at 06:07 UTC

    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.
Re^3: Interval Computation Module Design
by syphilis (Archbishop) on Feb 21, 2006 at 04:40 UTC
    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.