Re:Int a = 5; a = a++ + ++a; a =? (2011)
by rtpg on Thursday May 14, 2026 @08:31PM
(#48143017)
int d = foo ? bar() : baz();
I think if anything people have been leaning more and more into expressions over statements, because when everything is an expression you end up being able to walk the gradient of complexity a bit more nicely than when you end up with a thing that just has to be broken down to a bunch of statements.
Re:Int a = 5; a = a++ + ++a; a =? (2011)
by saghm on Thursday May 14, 2026 @10:23PM
(#48143803)
Expressions are nice specifically because they don't tend to mutate things. The ternary operator is not at all the same as `a++` because you have the assign the result.
I think if anything people have been leaning more and more into expressions over statements, because when everything is an expression you end up being able to walk the gradient of complexity a bit more nicely than when you end up with a thing that just has to be broken down to a bunch of statements.