Hacker News new | ask | show | jobs
by pjc50 9 days ago
One of these days I want to do a "typesafe macro assembler" that actually is the language people think that C is.
4 comments

You could call it rust and just rename the remaining UB as "unsafe" and call the problem solved
I'm actually working on something similar to this. Basically works as an additional preprocessed layer over C++. You can get some crazy results, but it's tricky to integrate with existing build tools without causing havoc.
It already exists, MASM and TASM, and related derivatives, with high level control flow pseudo instructions and less UB.
You could even give it identical syntax to C!