in reply to Re: Things I Don't Use in Perl
in thread Things I Don't Use in Perl
I find overloaded operators very useful in the limited context of mathematical objects such as vectors and matrices. They can make these kinds of formulas more legible IMHO: I'd rather have
than$z = $x x $y / ($x . $y)
(See the Math::VectorReal module, for example).$z = $x->cross($y)->divide_by($x->dot($y));
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Things I Don't Use in Perl
by chester (Hermit) on Aug 23, 2005 at 18:20 UTC | |
by itub (Priest) on Aug 23, 2005 at 18:34 UTC | |
Re^3: Things I Don't Use in Perl
by Anonymous Monk on Aug 25, 2005 at 17:31 UTC | |
by Anonymous Monk on Aug 25, 2005 at 19:46 UTC |
In Section
Meditations