4 ms·
Obviously we disagree on where the example lands. My original post was in good faith. "Why would you need a new construct for something that is already solved?
by wodenokoto 8y ago
Obviously we disagree on where the example lands. My original post was in good faith.
"Why would you need a new construct for something that is already solved?"
To me, adding the variable assigned before the if-statement, inside, or after the if-statement would have made it clear why one might write the original code that way, and why a new type of assignment could be helpful.
Looking at the downvotes, that is apparently not a common confusion.