@[email protected] to Programmer [email protected] • 1 year agoifn'tprogramming.devimagemessage-square116fedilinkarrow-up1730arrow-down111starcopymore-verticalflagCreate ReportslashBlock user
arrow-up1719arrow-down1imageifn'tprogramming.dev@[email protected] to Programmer [email protected] • 1 year agomessage-square116fedilinkstarcopymore-verticalflagCreate ReportslashBlock user
minus-square@[email protected]linkfedilink2•1 year agoAh clever, didn’t think of doing this. Not having to encapsulate if statements in scopes would still look cleaner though arrow-up12arrow-down10file-textreply1starmore-verticalmailMessageflagCreate ReportslashBlock user
minus-square@[email protected]linkfedilink1•edit-21 year agoIt’s handy if you’re creating temp variables for single use that you don’t need to use again. Although I admit I’ve only ever done it a couple times lol Again in c# you can omit the scope and only the next statement is part of an if or loop. arrow-up11arrow-down10file-textreply1starmore-verticalmailMessageflagCreate ReportslashBlock user
Ah clever, didn’t think of doing this. Not having to encapsulate if statements in scopes would still look cleaner though
It’s handy if you’re creating temp variables for single use that you don’t need to use again.
Although I admit I’ve only ever done it a couple times lol
Again in c# you can omit the scope and only the next statement is part of an if or loop.