4 ms·
It would be easier to just design better language that compiles into C++ and can use existing libraries than continue with C++.
by nabla9 11y ago
It would be easier to just design better language that compiles into C++ and can use existing libraries than continue with C++.
- blywi 11y agoIronically this is exactly how C++ itself started out: With a compiler that compiles C++ code into C. https://en.wikipedia.org/wiki/Cfront https://en.wikipedia.org/wiki/Cfront
- pldrnt 11y agoIncidentally, this is exactly what I am working on, grammar and parser are mostly done (the grammar is _regular_ and programs can rewrite themselves starting from their AST, because I really want something like `go fmt` one day), doing the transpiler at the moment, it's... interesting to say the least. (it will be foss of course but nothing is published yet)
- nikbackm 11y agoUse existing C++ (template) libraries? Does not seem that easy to me, seems that would impose quite a bit of complexity on the new language.