Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

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

Search the Archive

Re: Defining two functions at once?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg70776] Re: Defining two functions at once?
  • From: AES <siegman at stanford.edu>
  • Date: Fri, 27 Oct 2006 00:28:18 -0400 (EDT)
  • Organization: Stanford University
  • References: <200610250539.BAA28821@smc.vnet.net> <78AA9A16-9EF9-4717-9E52-3BF779D34077@mimuw.edu.pl> <ehplu9$khk$1@smc.vnet.net>

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