Re: Very poor Lisp performance



Joe Marshall wrote:
> Infix parsers are rarely used for several reasons. The increase in
> incompatibility is one reason, but there are others:
>
> Infix macros are *hard*.

Do you mean it is difficult to implement infix in Lisp?

> You need to learn the prefix notation *anyway* (because code that
> operates on code needs to operate at the abstract syntax level,
> which in lisp is naturally prefix-notated lists).

So Lisp is rather tied to the built-in prefix notation.

> Infix only works well on binary operations

Yes.

> (consider the popularity of ternary ? : operator).

I used to use that a fair bit. Are you saying it is popular or unpopular?

> Languages drift. And as I mentioned before, bandwidth and error
> correction are importand factors.

Do you think that syntax is a significant source of errors when programming?
I believe that my errors tend to be at higher levels, e.g. algorithms.

--
Dr Jon D Harrop, Flying Frog Consultancy
http://www.ffconsultancy.com
.



Relevant Pages

  • Re: merits of Lisp vs Python
    ... So chemists will use an infix package, ... As already said any infix Lisp ... boy/girl and confront him/her his/her life with mostly prefix syntax. ... people does in math, science, enginnering, almost any programming ...
    (comp.lang.lisp)
  • Re: Very poor Lisp performance
    ... > Do you mean it is difficult to implement infix in Lisp? ... I mean that designing a *good* macro system for an infix language is ... >> operates on code needs to operate at the abstract syntax level, ...
    (comp.lang.lisp)
  • Re: Any macro for inserting math "normally"
    ... Greater general familiary with infix than with prefix ... whereas using LISP for math during his entire ... number of parentheses. ... Because expressions are complicated; finding them requires ...
    (comp.lang.lisp)
  • Re: Any macro for inserting math "normally"
    ... I'm not really concerned with whether Lisp is popular. ... algebraic/infix notation has as its key feature "brevity" ... obviously right that infix notation is best for all needs. ... the strategy seems to be for the large community to ...
    (comp.lang.lisp)
  • Re: Very poor Lisp performance
    ... >>> Do you mean it is difficult to implement infix in Lisp? ... > to write macros that use infix syntax? ... your language is infix it's harder to write macros because the macros ...
    (comp.lang.lisp)