3 ms·
If you were willing to live with a Turing-complete grammar in a general purpose language, I wonder how it would ideally work and what you’d be able to gain in t
by twoodfin 2y ago
If you were willing to live with a Turing-complete grammar in a general purpose language, I wonder how it would ideally work and what you’d be able to gain in trade.
Sort of a supercharged version of Lisp reader macros.
- samatman 2y agoWe already have that: Forth. The above sentence can be a Forth program. This? Another Forth program. What does my post do? Run it to find out! > OK
- MaxBarraclough 2y agoI'm a Forth dabbler too, but its opposite number in the Lisp world also deserves a mention: Racket. Like Forth, Racket can be extended to describe languages radically different from the 'starting point' language. https://en.wikipedia.org/wiki/Racket_(programming_language)#Integrated_language_extensibility_and_macros https://en.wikipedia.org/wiki/Racket_(programming_language)#...