On Thursday, 13 March 2025 at 12:38:51 UTC, Basile B. wrote:
>What you want has nothing to do with the WithStatement, what you want is "inline variables", i.e a VariableDeclaration as an Expression.
Thanks for clearing that up! :) I am not a language expert so I do not know the terminology. Obviously I want something similar to what the for statement gives us - ability to initialise the variable and use it in inside the block.