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.]
- References:
- Defining two functions at once?
- From: AES <siegman@stanford.edu>
- Defining two functions at once?