MathGroup Archive 2006

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

Search the Archive

Re: Programming style: postfix/prefix vs. functional


Hi,

the good style is the code that *you* understand
today and when *you* look on it in 6 weeks and in
five years.

Regards
  Jens

"Will Robertson" <wspr81 at gmail.com> schrieb im 
Newsbeitrag news:eha5kn$b82$1 at smc.vnet.net...
| Hello,
|
| As a newcomer to Mathematica, I'm a little 
unsure on what "good style"
| would be in this programming language. I notice 
that several functions
| have prefix and postfix notations such as //. 
for ReplaceRepeated, /@
| for Map, and so on.
|
| Clearly using these forms makes the code more 
compact, but sacrifices
| some level of readability. Are there guidelines 
or suggestions that
| have built up over the years of whether these 
are "good" or "bad" to
| use?
|
| If it's simply personal preference, what do you 
like to use?
| --
| Many thanks,
| Will Robertson
| 



  • Prev by Date: undocumented setting for the Frame option revised!
  • Next by Date: Re: Problem in loading packages in Mathematica
  • Previous by thread: Re: Programming style: postfix/prefix vs. functional
  • Next by thread: Re: Programming style: postfix/prefix vs. functional