MathGroup Archive 2012

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

Search the Archive

Re: new functional operator

On Tuesday, March 13, 2012 11:34:12 PM UTC-6, roby wrote:
> >
> > I don't have any problem agreeing this notation looks nicer than say
> >
> > {1, 2, 3, 4} // f /@ # & // g /@ # &
> >
> > And, I can set up the definition in init.m so that it is always
> > available without needing to define it in each notebook where I
> > would use it.
> >
> > But it presents another issue. Unless you are writing code for
> > yourself you will never share with someone else, you will be
> > making your code much more difficult to understand.
> >

Not any more so than any other specialized function you might define for your problem. You always need to be clear about notation and conventions in Mathematica code. This case is much easier than most, I think.

> Thats why I would prefer /// as postfix-map operator to be implemented
> by the Mathematica staff.
> Any Mathematica staff member listening ?

Please, no. Mathematica is already bloated with functions trivially implementable using more basic functions. That creates a information fog that makes *all* Mathematica code harder to understand, and Mathematica much harder to learn than it used to be.

  • Prev by Date: Re: Creating List
  • Next by Date: Re: replace one rule in a list of rules
  • Previous by thread: Re: new functional operator
  • Next by thread: Re: new functional operator