Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #13726

Re: Mathematica and Lisp

From Richard Fateman <fateman@cs.berkeley.edu>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Mathematica and Lisp
Date 2013-03-06 03:13 +0000
Message-ID <kh6c93$b26$1@smc.vnet.net> (permalink)
References <kgse4s$jam$1@smc.vnet.net> <20130303072215.D75466867@smc.vnet.net> <CAEtRDSdZ37Q7yCggT8AGWkKncfF57V57Et5JxjQ6i1yBnSVePQ@mail.gmail.com> <kh163q$sa3$1@smc.vnet.net> <kh4d4r$70k$1@smc.vnet.net>
Organization Time-Warner Telecom

Show all headers | View raw


On 3/5/2013 1:16 AM, David Bailey wrote:
<snip>
>
> It is important to realise that anyone can understand any expression
> involving operators by using Hold and FullForm:
>
> (f @@@ g) // Hold // FullForm
>
> Hold[Apply[f,g,List[1]]]

I, of course, would suggest that one NOT use
(f@@@g)//Hold//FullForm

but

FullForm[Hold[f@@@g]]

1. My form is clearer, not using any additional mysterious-to-the-novice 
infix operations like //.

2. It is even shorter, using 2 fewer characters, as written.

3. It apparently requires less thought, because even you were, at least 
for the moment,  unsure of the precedence of // and so you inserted the
entirely unnecessary ()   around f@@g.

4. There is really no question of the precedence in my form.

5. The whole notion of a novice being required to know about
both Hold and FullForm in order to get an explanation for @@@
(or alternatively type f@@@g, select @@@ and hit F1),
(or alternatively type bare on a line @@@ and hit F1 -- a solution
that I found that did not require use of a mouse -- an improvement!)
is all too much.

I have not really heard an explanation for ?@@@
failing except that it is expected to fail by cognoscenti. My favorite
video commentary, previously cited, about such an approach
to the equivalence of bugs to features is "I meant to do that"...

http://www.youtube.com/watch?v=vJXU7EVXs2A

RJF

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Mathematica and Lisp Bill Rowe <readnews@sbcglobal.net> - 2013-03-02 08:44 +0000
  Re: Mathematica and Lisp Richard Fateman <fateman@cs.berkeley.edu> - 2013-03-03 07:21 +0000
    Re: Mathematica and Lisp John Doty <noqsiaerospace@gmail.com> - 2013-03-04 03:58 +0000
      Re: Mathematica and Lisp Richard Fateman <fateman@cs.berkeley.edu> - 2013-03-05 09:15 +0000
    Re: Mathematica and Lisp Vince Virgilio <blueschi@gmail.com> - 2013-03-06 03:12 +0000
  Re: Mathematica and Lisp Bob Hanlon <hanlonr357@gmail.com> - 2013-03-04 03:57 +0000
  Re: Mathematica and Lisp Richard Fateman <fateman@eecs.berkeley.edu> - 2013-03-04 03:57 +0000
    Re: Mathematica and Lisp David Bailey <dave@removedbailey.co.uk> - 2013-03-05 09:16 +0000
      Re: Mathematica and Lisp Richard Fateman <fateman@cs.berkeley.edu> - 2013-03-06 03:13 +0000
        Re: Mathematica and Lisp David Bailey <dave@removedbailey.co.uk> - 2013-03-06 11:04 +0000
          Re: Mathematica and Lisp Richard Fateman <fateman@cs.berkeley.edu> - 2013-03-07 08:58 +0000
  Re: Mathematica and Lisp Richard Fateman <fateman@eecs.berkeley.edu> - 2013-03-05 09:15 +0000
  Re: Mathematica and Lisp Murray Eisenberg <murray@math.umass.edu> - 2013-03-05 09:16 +0000
  Re: Mathematica and Lisp John Doty <noqsiaerospace@gmail.com> - 2013-03-07 08:58 +0000

csiph-web