Re: Re: Types in Mathematica

*To*: mathgroup at smc.vnet.net*Subject*: [mg62276] Re: [mg62265] Re: Types in Mathematica*From*: Kristjan Kannike <kkannike at physic.ut.ee>*Date*: Sat, 19 Nov 2005 05:53:57 -0500 (EST)*References*: <200511120833.DAA19252@smc.vnet.net> <43762529.7060603@math.umass.edu> <dl8s4g$n41$1@smc.vnet.net> <dl980q$r2a$1@smc.vnet.net> <200511140805.DAA00041@smc.vnet.net> <dlc96b$m81$1@smc.vnet.net> <dlhibt$5ki$1@smc.vnet.net> <200511181057.FAA26343@smc.vnet.net>*Sender*: owner-wri-mathgroup at wolfram.com

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/>

**References**:**Types in Mathematica***From:*"Steven T. Hatton" <hattons@globalsymmetry.com>

**Re: Types in Mathematica***From:*"Steven T. Hatton" <hattons@globalsymmetry.com>

**Re: Types in Mathematica***From:*John Doty <jpd@whispertel.LoseTheH.net>