From:

Date:

December 4, 2016 23:25Subject:

Re: Math-BigInt OO design (again)Message ID:

CAFwScO817QkxAkdvTSDiGKcKstXGAcBCq9BN0rVJhYOBB_NZ2w@mail.gmail.comI'm guessing the purpose of the virtual base class is to handle the overloading and pass off operations to methods in the various types of math things. If I'm correct in this, I'd name it based on what it does instead of this group of intended purposes, so it could comfortably be used as a base class for complex numbers, or some other freaky kind of thing that you want to operate on using the arithmetical infix operators. Like a stream class that works like C++ streams, to give an example that seems weird but someone could conceivably want to do. Such a package might be called something like Overload::Maths. I don't know what is currently happening in that name space on CPAN, I wouldn't be surprised if it doesn't already exist. How is CPAN's support for Complex numbers organized, class-hierarchy-wise? On Sun, Dec 4, 2016 at 4:00 AM, Peter John Acklam <pjacklam@gmail.com> wrote: > Last year I posted a question here about me wanting a virtual parent class > for Math::Big(Int|BigFloat|Rat) modules. > > I suggested the name Math::BigNum, and I got thumbs up, but now that I am > about to implement this, I realize that this package/namespace has been > taken by TRIZEN for the Math-BigNum distribution. > > I have thought about Math::BigReal as an alternative, but since the > Math::Big(Int|Float|Rat) modules are in the Perl distribution, I would like > your input. > > Math::BigReal is actually more precise than Math::BigNum, since I am only > dealing with real numbers. What do you think? Any better alternatives? > > Regards > Peter / PJACKLAM > (Current maintainer for the Math-BigInt-related distributions.) -- "Teaching radical novelties is our main safeguard against dictatorships" -- Edsger W. DijkstraThread Previous

- Math-BigInt OO design (again) by Peter John Acklam
**Re: Math-BigInt OO design (again)**by David Nicol

nntp.perl.org: Perl Programming lists via nntp and http.

Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About