, , .
, "" . - :
if (p != null) {
if (p.getValue() == 3) {
// do stuff
}
}
It seems trivial, but try coding in a language that doesn't have one (like VB6), and you start to miss it a lot.
This is in language standards, as other answers mention, but only because something like this should be clearly indicated. What it can compile to optimized code is a side effect; currently a decent C or C ++ compiler will compile single-line or two-line statements evenly
Matt source
share