MathGroup Archive 2001

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

Search the Archive

Re: OOP in Mathematica

  • To: mathgroup at
  • Subject: [mg28992] Re: OOP in Mathematica
  • From: Jens-Peer Kuska <kuska at>
  • Date: Thu, 24 May 2001 04:07:10 -0400 (EDT)
  • Organization: Universitaet Leipzig
  • References: <9e02ol$> <9e2bm5$> <CjLN6.9482$>
  • Sender: owner-wri-mathgroup at


> With all respect, I think you might have said "in my opinion." 

I have no other opinion than mine.

> OOP is
> revolutionizing software development, by (among other things) separating
> implementation from interface, thus allowing modules to interact more easily
> and with fewer problems.

That's OOP -- wow! I thought it is good programming style, working
in every higher programming language.

> Mathematica's "Module[]" facility is a simple
> embodiment of this idea, 

What is with my beloved Block[] - is it also OOP  ?
Next you will say that patterns are also OOP, and the 
good old pure functions ? Is this object oriented ?
Fine ! Now I know that LISP and Prolog are native
object oriented languages !

> by enclosing code blocks and isolating them from
> their applications, making it possible to change the methods without
> changing the outer appearance and uses.

You change *functions* not methods! and this is functional programming.
Since Mathematica does not know what a data type is, the data 
types can't have methods.
But you can have functions that evaluate special arguments.


  • Prev by Date: RE: Q: Extract Elements from a List?
  • Next by Date: Re: mathematica eps plots and TeX
  • Previous by thread: Re: Re: OOP in Mathematica
  • Next by thread: Re: OOP in Mathematica