M
Michael Ulm
Paul said:Michael Ulm wrote:
/ ...
I think the writers of the Matrix class realized this, and didn't bother
to include an assignment operator on the ground that it wouldn't have any
general utility.
Then they would have been wrong. The lack of the []= operator has been a
major PITA for me, as I often need matrix functions (FWIW I'm a
mathematician, working on applications of artificial inteligence).
The implementations of many higher level matrix operations needs the
assignment operator. Try implementing a SVD algorithm without it.
In Ruby, it's trivial to add it.
Granted, it is easy to add it. But the implementation is not the
problem; it's the small and subtle nuisances that are introduced when
you add a method to a standard class. You'd have to make sure to get
the syntax just right, you must ensure that every module that needs
is will get access to it without violating the DRY principle etc.
Maybe you are better organized and all these subtleties just come
natural to you. For me it's a pain.
Regards,
Michael
--
Michael Ulm
R&D Team
ISIS Information Systems Austria
tel: +43 2236 27551-219, fax: +43 2236 21081
e-mail: (e-mail address removed)
Visit our Website: www.isis-papyrus.com
---------------------------------------------------------------
This e-mail is only intended for the recipient and not legally
binding. Unauthorised use, publication, reproduction or
disclosure of the content of this e-mail is not permitted.
This email has been checked for known viruses, but ISIS accepts
no responsibility for malicious or inappropriate content.
---------------------------------------------------------------