Re: Programming style: postfix/prefix vs. functional
- To: mathgroup at smc.vnet.net
- Subject: [mg70609] Re: [mg70587] Programming style: postfix/prefix vs. functional
- From: János <janos.lobb at yale.edu>
- Date: Sat, 21 Oct 2006 05:13:50 -0400 (EDT)
- References: <200610200921.FAA11092@smc.vnet.net>
On Oct 20, 2006, at 5:21 AM, Will Robertson wrote: > 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 "Resistance is futile. You will be assimilated." You have to learned it ALL :) János -------------------------------------------------- Lunatics always attain their goals better than normal people do. It happens because there are no moral boundaries for them: no shame, no truthfulness, no conscience, and not even fear. <Leo Tolstoy>
- References:
- Programming style: postfix/prefix vs. functional
- From: "Will Robertson" <wspr81@gmail.com>
- Programming style: postfix/prefix vs. functional