MathGroup Archive 2010

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

Search the Archive

Re: Mathematica daily WTF

  • To: mathgroup at
  • Subject: [mg115033] Re: Mathematica daily WTF
  • From: David Bailey <dave at>
  • Date: Wed, 29 Dec 2010 05:56:07 -0500 (EST)
  • References: <ifcuiu$cg7$>

On 28/12/2010 15:09, Andrzej Kozlowski wrote:
> On 26 Dec 2010, at 10:02, kj wrote:
>> Mine has been deformed by programming languages other than Mathematica,
>> in which assignment does transfer everything
> The "fundamental principle" of Mathematica is that a "rewrite rule" based system and many similarities to other programming languages (in particular Lisp and other functional languages) are mostly matters of convenient syntax rather than anything deeper. In particular, Mathematica does not have "real" assignments, thus the "assignment" x==a;
> simply creates an OwnValue for x (in other words, a global rewrite rule) and that's all:
>   x == a;
> OwnValues[x]
> {HoldPattern[x]:>a}
> The same applies to "functions" defined using set etc; they all simply create global rewrite rules. The only exception that comes to my mind is direct application of anonymous functions such as:
> #^3&@2
> 8
> which seems to me the only genuine "functional" aspect of Mathematica (I would also argue that all claims of similarity between Mathematica and Lisp, not to mention the supposed "borrowing" are based on a very superficial understanding of Mathematica). As far as I know in its basic structure it is unlike any other programming language so it should not be surprising that
>> the meanings that Mathematica puts on of bread-and-butter
>> programming terms like "=="/"assignment", "value", and "dynamic
>> scope" are entirely sui-generis
> Andrzej Kozlowski
I just thought I would point out that you accidentally wrote == where 
you meant = several times in this post :)

David Bailey

  • Prev by Date: Re: Solve : missing elims in the Mathematica 8 version of the Mathematica 7 Solve[eqns,vars,elims]
  • Next by Date: Re: Mathematica daily WTF
  • Previous by thread: Re: Mathematica daily WTF
  • Next by thread: weird non-accidents, was Re: Re: Mathematica daily WTF