5 Dec
2023
5 Dec
'23
12:30 p.m.
I personally prefer it, myself, and in general I prefer limiting variable scopes to the blocks where they're used. I believe Henri tends to have an opposite preference, but so far I don't think he's rejected patches on those grounds.
I'm not sure I'd call it the opposite, but I do like to keep declarations together instead of spreading them around, yes. I also tend to think that for reasonably sized functions it doesn't make much of a difference though... -- https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/506#note_55060