@cmuratori Wanted to ask sth.In the last Witness Wednesday,you put a for loop inside a static function in a {} block.Why?
@npatsiouras It is to scope the variables. int x = 5; { ... } ++x; is valid, whereas {int x = 5; ...} ++x; is an error.
-
-
@npatsiouras So it controls the lifetime of variables for you. That is still very useful, even though the for() scoping is now standard. -
@cmuratori I know what it does,I just haven't found real use for it so far.And thought if it was a relic of old ways mostly. - Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.