MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Re: Types in Mathematica


On Fri, 18 Nov 2005, John Doty wrote:

[snip]

> Try defining an "argument" that operates on its "function" in any other
> language. Of course few Mathematica programmers would do anything this

But is it not just operator overloading? In Python, for example, adding
numbers with + gives a number, but "adding" two lists with + concatenates
them. Of course, in a Python class one can define it only for given
methods and in Mathematica for any function. But the essence is the same
and quite analogous.

Kristjan Kannike
<http://www.physic.ut.ee/~kkannike/english/>


  • Prev by Date: Random Normal deviates within compiled function?
  • Next by Date: Re: Weighted histogram
  • Previous by thread: Re: Types in Mathematica
  • Next by thread: Re: Types in Mathematica