Re: [patch 0/4] uaccess: Provide and use helpers for user masked access
From: Al Viro
Date: Mon Aug 18 2025 - 18:23:43 EST
On Mon, Aug 18, 2025 at 02:36:31PM -0700, Linus Torvalds wrote:
> And "goto" is fine, as long as you have legible syntax and don't use
> it to generate spaghetti code. Being able to write bad code with goto
> doesn't make 'goto' bad - you can write bad code with *anything*.
Put it another way, one can massage a code into a strictly structured
(no goto, only one exit from each block, etc.) equivalent and every
hard-to-answer question about the original will map to the replacement -
just as hard as it had been.
I suspect that folks with "goto is a Bad Word(tm)" hardon had been told
that goto was always avoidable, but had never bothered to read the proof...