3 ms·
Not much. But syntax matters; a ternary expression tells me at a glance that there's no funny stuff going on, it's just making a choice between two expressions
by codr7 5y ago
Not much.
But syntax matters; a ternary expression tells me at a glance that there's no funny stuff going on, it's just making a choice between two expressions.
In Go I have to scan every single branch when reading to make sure.