Hacker News new | ask | show | jobs
by loeg 3459 days ago
Out of millions of CVEs, one is plausibly related to this coding style. I don't think that's a strong argument for using the more verbose style. If we saw this all the time it might be a different matter.

I think it is a strong argument for compilers' -Wall to detect misindented statements directly following unbracketed conditional expressions, though.

2 comments

Does this make it a moo-t point?
Also a strong argument for Python's syntax :)
Except in Python both the incorrect and correct code are syntactically valid and the error cannot be detected by auto-formatter.