Re: infix via code walker hook.

Liste des GroupesRevenir à cl lisp 
Sujet : Re: infix via code walker hook.
De : 643-408-1753 (at) *nospam* kylheku.com (Kaz Kylheku)
Groupes : comp.lang.lisp
Date : 05. Apr 2025, 08:59:25
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20250405005114.715@kylheku.com>
References : 1 2 3 4 5 6 7
User-Agent : slrn/pre1.0.4-9 (Linux)
On 2025-04-05, Stefan Ram <ram@zedat.fu-berlin.de> wrote:
Stefan Monnier <monnier@iro.umontreal.ca> wrote or quoted:
sin a + b + c + sin d + e + f
Well, now you're falling into the world of heuristics to try and handle
the inconsistent mix of rules used by various authors.
You're obviously free to go there, but don't count me in.
>
  Languages such as "AsciiMath" or "AsciiMathML" have been created
  to deal with such notations, and there is software available to
  convert them to LaTeX or MathML.
>
  In one case, a double space was made significant, to resolve
  some ambiguities as in "sin  a/2", in which the "/" now binds
  stronger than the sin, different from "sin a/2".

I feel that this anecdote validates my intutition that we want
sin a / 2 to be sin(a / 2), and such. The ugliness of the double space
hack is proportional to the depth of someone's regret, which he or she
used to justify coding the hack.

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca

Date Sujet#  Auteur
31 Mar 25 * infix via code walker hook.9Kaz Kylheku
2 Apr 25 `* Re: infix via code walker hook.8Kaz Kylheku
4 Apr 25  `* Re: infix via code walker hook.7Kaz Kylheku
4 Apr 25   `* Re: infix via code walker hook.6Stefan Monnier
4 Apr 25    `* Re: infix via code walker hook.5Kaz Kylheku
4 Apr 25     `* Re: infix via code walker hook.4Stefan Monnier
5 Apr 25      +- Re: infix via code walker hook.1Kaz Kylheku
5 Apr 25      `* Re: infix via code walker hook.2Stefan Ram
5 Apr 25       `- Re: infix via code walker hook.1Kaz Kylheku

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal