Re:HAL/S Syntax
by doctor_eval on Sunday June 19, 2022 @06:05PM
(#31803998)
It would be so great if we could write mathematical expressions such as
in regular code. Is this the case in any modern language?
[ Parent
| on HN ]
Re:HAL/S Syntax
by cmrdporcupine on Sunday June 19, 2022 @10:09PM
(#31805578)
If I recall Guy Steele's (discontinued) Fortress scientific programming language was supposed to be like this. It was designed to have "syntactic stylesheets" and was meant to be rendered out into LaTeX, Unicode, etc. and the goal was to have some common mathematical notation in the syntax and also to make the syntax look a bit like the pseudocode that often appears in scientific and research papers.
https://web.archive.org/web/20160304052722/https://java.net/...
Wolfram Mathematica allows for this and perhaps you can do this in Haskell with some advanced trickery.