Comment by cracki

5 months ago

Reading for intent is pragmatic.

Reading adversarially is what people do who are looking for ways that something can be abused, from an offensive or defensive position.

Personally I am tired of the entire topic.

What's bad is when your compiler writers and most of the people involved in standardisation are reading it adversarially.

  • It's bad when compiler writers want to optimize correct code as much as possible, which is something their actual customers keep asking for?

    • When would optimizing correct code be harmed by not abusing UB (beyond its original intent, e.g. array access should be without overhead of checking for overflow)?