Re: Types in Mathematica
- To: mathgroup at smc.vnet.net
- Subject: [mg62297] Re: Types in Mathematica
- From: John Doty <jpd at whispertel.LoseTheH.net>
- Date: Sat, 19 Nov 2005 23:18:25 -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> <dln0ut$gb3$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Kristjan Kannike wrote: > 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. Misleading, because, in the following... > 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. .... the second sentence contradicts the first. The mechanisms of Python are essentially procedural and therefore require "given methods". Profoundly and fundamentally different from Mathematica. -jpd
- 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>
- Types in Mathematica