MathGroup Archive 2005

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

Search the Archive

Types in Mathematica

  • To: mathgroup at smc.vnet.net
  • Subject: [mg62152] Types in Mathematica
  • From: "Steven T. Hatton" <hattons at globalsymmetry.com>
  • Date: Sat, 12 Nov 2005 03:33:11 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

I know there are reasons for Mathematica not being a strongly typed
language, but I'm wondering if there are places where a type system might
be of use, and how it might be implemented, or simulated. 

 One suggestion from The Mathematica Book is that we could create something
like 
Vector3[x_,y_,z_], and test the head of variables to determine if they are
Vector3. I'm not sure exactly where in the book that is, and the Linux
version does not have a desktop search, AFAIK.

Observations?  Suggestions?
-- 
The Mathematica Wiki: http://www.mathematica-users.org/
Math for Comp Sci http://www.ifi.unizh.ch/math/bmwcs/master.html
Math for the WWW: http://www.w3.org/Math/


  • Prev by Date: Re: Integrate problem?
  • Next by Date: Re: Question about passages
  • Previous by thread: Accessing unevaluated input line
  • Next by thread: Re: Types in Mathematica