Comment by mgaunard

3 years ago

It being possible to misuse a tool does not mean the tool is not very useful.

A tool being very useful doesn’t mean that it is a very good tool.

There are better tools for the functionality the C preprocessor attempts to provide. Other languages have module inclusion systems and very powerful macros that don’t have the enormous footguns of the C preprocessor.

Édit: to be clear, I think #embed is a fine idea; I’d use it and it would make my sourcebase cleaner in some places.

My carpenter has a lot of tools that can be dangerous if misused. Of course better tools can be devised, but useful things have been done with them (and he still has all his fingers)

Yes, but we’re in a thread about ways to improve the language, not about how to make the best with what’s there. This type of argument holds back improvement.