Discussion: new operators for numerical computation
Paul Prescod
paul at prescod.net
Sun Jul 23 02:34:54 EDT 2000
Rainer Deyke wrote:
>
> This would allow constructs such as:
>
> A(.init)B
>
> In other words, it would turn all existing __magic__ functions into
> operators. Not a good idea IMO.
Easily fixed if we map ".foo" to "__operator_foo__" and
"__roperator_foo__".
I strongly prefer name-based proposals to cryptic symbols. I would
support A(.mm)B for matrix multiply and A(.em)B for element multiply,
A(.slv)B for solving and so forth. I can even imagine where this would
be useful in other domains.
--
Paul Prescod - Not encumbered by corporate consensus
"Hardly anything more unwelcome can befall a scientific writer than
having the foundations of his edifice shaken after the work is
finished. I have been placed in this position by a letter from
Mr. Bertrand Russell..."
- Frege, Appendix of Basic Laws of Arithmetic (of Russell's Paradox)
More information about the Python-list
mailing list