12 ms·
It being possible to misuse a tool does not mean the tool is not very useful.
by mgaunard 4y ago
It being possible to misuse a tool does not mean the tool is not very useful.
- KerrAvon 4y agoA 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.
- makapuf 4y agoMy 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)
- LadyCailin 4y agoYes, 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.