Re:The Design of C++ (1994) [video]
by byuu on Saturday September 10, 2016 @04:39AM
(#12468317)
> You want that to be line-based when expressions have side effects.
No, I really don't. I don't want three lines instead of one line of code. And I don't want two named variables leaking into my scope. (I could encapsulate the block with {} here, but if print returned a value that I wanted to capture, then I couldn't do that.)
No, I really don't. I don't want three lines instead of one line of code. And I don't want two named variables leaking into my scope. (I could encapsulate the block with {} here, but if print returned a value that I wanted to capture, then I couldn't do that.)