2 ms·
It's easier to 'ban' it and then to make exceptions on a case by case basis when not using goto make things worse. That has three practical benefits: It's clea
by mytailorisrich 5y ago
It's easier to 'ban' it and then to make exceptions on a case by case basis when not using goto make things worse.
That has three practical benefits: It's clear (which is an underrated quality), it forces people to structure their code accordingly, and it prevents endless discussions (another very valuable quality). Otherwise, in my experience the use of goto tends to creep up and every occurrence leads to discussions in code review.
So it's not that those decisions are subjective is that they are practical and workable. Especially, if you are defining practices for contractors to follow it is beneficial to keep those rules simple and clear as they will form contractual obligations.