What is the reason that functions can’t have inner functions inside them. Is this simply a design choice? Is it just not within the Zig philosophy? or Is this something that would be done in future?
Just commenting to reply in defense of @slonik-az that the link actually is broken (on mobile Safari, anyway). But this appears to be a GitHub or Safari issue, maybe due to there being hundreds of collapsed comments in that issue which messes up the page loading when the link is to a later comment, but that’s just a guess.
Anyway, using a local struct for the function is the correct answer to the original question IMO.
The link does not work on my ipad using Safari browser. moreover it traps the browser so that “go back” button does not work. could be a safari things but annoying like hell.