>>java programmer would probably be familiar with it
And also C, C++, and Objective-C programmers. I'm sure there are more languages that use that operator that I have not mentioned here.
And also C, C++, and Objective-C programmers. I'm sure there are more languages that use that operator that I have not mentioned here.
$ php -a
Interactive mode enabled
php > echo 1 == 1 ? "foo" : "bar";
foo
php > echo 1 == 2 ? "foo" : "bar";
bar
Looks like javascript has it too: 1 == 1 ? "foo" : "bar"
"foo"
1 == 2 ? "foo" : "bar"
"bar"The use of parenthesis is highly encouraged...