Hacker News new | past | comments | ask | show | jobs | submit login

It would be easier to just design better language that compiles into C++ and can use existing libraries than continue with C++.



Ironically this is exactly how C++ itself started out: With a compiler that compiles C++ code into C.

https://en.wikipedia.org/wiki/Cfront


Incidentally, 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)


Use existing C++ (template) libraries? Does not seem that easy to me, seems that would impose quite a bit of complexity on the new language.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: