C++ hidden feature
This is one I didn’t know. Conditional expressions in C++ can be lvalue:
(a == 0 ? a : b) = 42;
More hidden features: http://beerpla.net/2009/06/21/hidden-features-of-perl-php-javascript-c-c-c-java-ruby-python-and-others-collection-of-incredibly-useful-lists/
Lol? Hidden feature? This is standard in C++ programming…