Re: SRFI 266: The expr syntax
Dr. Arne Babenhauserheide 17 Jan 2026 10:28 UTC
Hi,
expr looks pretty useful
It mentions srfi-105 (curly-infix) only as "not how we do it", though.
But srfi-105 provides a way to extend it, and expr might fit right into
that:
> However, an implementation MAY provide one or more libraries that when
> imported bind the “$nfx$” and/or “$bracket-apply$” symbols
https://srfi.schemers.org/srfi-105/srfi-105.html
and
> Forms with mixed infix operators and other complications have “$nfx$”
> prepended to enable later processing, e.g., {4 + 5 * 6} ⇒ ($nfx$ 4 + 5
> * 6)
So by implementing expr in terms of a macro named $nfx$, there would be
good operability between expr and curly-infix and expr would provide
richer semantics to curly-infix.
Best wishes,
Arne
--
Unpolitisch sein
heißt politisch sein,
ohne es zu merken.
draketo.de