3 ms·
> This philosophy may make sense for a low-level language like C Even for a low level language like C it really doesn't, it makes the implementation easier but
by masklinn 5y ago
> This philosophy may make sense for a low-level language like C
Even for a low level language like C it really doesn't, it makes the implementation easier but all the things you mention (and more) are useful both to ensure the foundations are solid (security, correctness) and to make it fast: the weak type system and feeble guarantees of C are why compilers lean so much on UBs to infer constraints they can then optimise based on.