in reply to Interval Computation Module Design

BTW, taking more hints from Math::BigInt, you would probably end up making your intervals objects, and you would be implementing an add() method. Then you'd use operator overloading to achieve a pleasant syntax. So yes, I do see code like $arg1->add($arg2), except you'd hide it behind an overloaded + operator:
use overload ( '+' => \&add ); # now $arg1 + $arg2 will be handled as $arg1->add($arg2) behind the sc +enes.
Just thought I'd mention that.

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

    That's a good idea. I will look at overload to add operator overloading.

    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.