Re:A different take on S-expressions
by tearflake on Wednesday June 18, 2025 @05:14PM
(#44313329)
Here is another example, an axiom from propositional logic:
which, vertically indented in a transposed block, looks like this:
which, using transposed lines within the transposed block, finally looks like this:
This time I won't make any judgements. Could be good, could be bad, you decide.
[ Parent
| on HN ]
Not sure if that example helps. You can make any programming language hard to read without some basic formatting. The way I would write the sexpr would be:
(impl
(impl
p
(impl q r))
(impl
(impl p q)
(impl p r)))
It's clear when each section begins and ends and doesn't require complex parsing rules.