Sujet : Re: infix via code walker hook.
De : 643-408-1753 (at) *nospam* kylheku.com (Kaz Kylheku)
Groupes : comp.lang.lispDate : 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/txrCygnal: Cygwin Native Application Library: http://kylheku.com/cygnalMastodon: @Kazinator@mstdn.ca