MathGroup Archive 2006

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

Search the Archive

Re: Defining two functions at once?


In article <ehplu9$khk$1 at smc.vnet.net>,
 Andrzej Kozlowski <akoz at mimuw.edu.pl> wrote:

> > I know this is not really relevant here, but I feel I should  
> > mention the fact that there is absolutely no point in using Module  
> > without any local variables; if you do not need local variables you  
> > will do better to enclose the right hand side in parentheses (or  
> > use explicit Composition[....,....,...]).

Thanks. I sort of knew that but -- as with so many other things about 
Mathematica! -- would not have been really dead sure that that was the 
case.

[Actually, I'll probably, stubbornly, just keep enclosing the right-hand 
side stuff in a "Module[ ]" wrapper anyway, nonetheless, just because it 
gives me a kind of psychic feeling that this does somehow encapsulate 
this content into a single named unit.  Maybe it's because I spent too 
many years writing and using FORTRAN subroutines.]


  • Prev by Date: Proving sign of cross partial
  • Next by Date: Re: DownValues and Cases
  • Previous by thread: Re: Defining two functions at once?
  • Next by thread: Re: [TS 27419]--Re:TreePlot from DiscreteMath`GraphPlot shadows TreePlot from DiscreteMath`Tree