MathGroup Archive 2001

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

Search the Archive

Re: OOP in Mathematica


Hi,

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

Regards
  Jens


  • 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