Re: How Lisp's Nested Notation Limits The Language's Utility



On May 9, 2:14 am, Jon Harrop <j...@xxxxxxxxxxxxxxxxx> wrote:
[...]
I don't think Xah's comments were specific to machine code in any way.
Essentially he is saying: is it not better to be able to write code like:

o + # d &

easily, rather than:

(lambda (x) `(+ ,o (* ,x ,d)))

If you really enjoy using that sort of syntax, it's not hard to whip
up a macro that allows you to use it in CL. Some people do exactly
that, but most people don't. I played around with it for a while
before deciding that it actually wasn't worth the trouble.
[...]
And don't you think that the advantages of being able to
easily understand what a program is doing makes it a lot
easier to attract talent to the field and to develop better
tools.

Absolutely. But don't you think most people will find it easier to
understand:

a + b*c

rather than:

(+ a (* b c))

?

I don't really care what most people will find easier to understand. I
care what I find easier to understand. I find that with infix
notations in computer languages, the choices I have are either
spending a great deal of time puzzling out precedence, or
parenthesizing everything. This is not a tremendous advantage over
Lisp.

Cheers,
Pillsy

.



Relevant Pages

  • Daft Wittery corrected (was Blatant plug/ad PING JF)
    ... TAKE THE MICK ABOUT MY PUNCTUATION AND SYNTAX. ... I DON'T CARE ... BUT MAYBE THIS IS SOME SORT OF PUERILE ATTEMPT TO GET SOME MORE PPL IN ...
    (uk.local.surrey)
  • Re: up down up down
    ... A lousy week, a few days of feeling pretty chipper, and now some things ... would be better if I just didn't care, or have anyone to care about. ... people down, that sort of thing. ... Not saying you have to go into hospital or nothing! ...
    (uk.people.support.depression)
  • Re: Tahirih Justice Center-Association with Anti-NGO/anti-environmentalist corporations
    ... I'm saying more than that. ... here are saying about many of the critics who have come here or spoken ... As I've said before, corruption is corruption, corporate malpractice ... care how many rivers they polluted, how many children in China worked ...
    (talk.religion.bahai)
  • Re: who can tell me why
    ... > Usually there are good reasons why the world settles on a consensus, ... What he did not say, which he could have, was that since he uses intellij its automagic and therefore mixing such statements makes the code look ugly or something Instead he chose to try to force his will on the rest of the team. ... Its really a non-issue, which most people dont care about anymore, they want to spend their time where it matters. ... Most projects I have worked on there has been some rules, but they have little to do with pretty syntax, but rather with semantics and avoiding bugs. ...
    (comp.lang.java.programmer)
  • Re: dead man talkin
    ... just did not seem to fit (the other saying that plum ... saying that you could not care less that a wonderful ... at great risk an enterprise competing in the molding, ... that your care level about this wonderful town semi- ...
    (misc.writing)