3 ms·
It would be so great if we could write mathematical expressions such as y := x² in regular code. Is this the case in any modern language?
by doctor_eval 4y ago
It would be so great if we could write mathematical expressions such as
y := x²
in regular code. Is this the case in any modern language?
- taktoa 4y agoAgda
- gjvnq 4y agoWolfram Mathematica allows for this and perhaps you can do this in Haskell with some advanced trickery.
- cmrdporcupine 4y agoIf 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/downloads/projectfortress/reference.pdf https://web.archive.org/web/20160304052722/https://java.net/...
- ubq323 4y agoraku