3 ms·
> Can we turn C into a new language? Can we do what Lisp and Forth let the over-eager programmer do, but in C? Show me an example where you turn the syntax int
by diggan 2y ago
> Can we turn C into a new language? Can we do what Lisp and Forth let the over-eager programmer do, but in C?
Show me an example where you turn the syntax into prefix notation instead, so turning the hello world example into (or something similar):
(def main (displayln "Hello, World!"))
Then I'll believe you :) Otherwise it just looks like another flavor of C
- musicale 2y agoHere you go: #include <stdio.h> #define print(_f) puts(_f); } #define Cdisplayln print(( #define Cdef int #define main main(){ Cdef main Cdisplayln "Hello, World!")) [For a non-joke approach (not mine) see: https://github.com/kchanqvq/CSP https://github.com/kchanqvq/CSP ]