«if» in programming langage did not match the «if» in natural langage.
I see in a lot of code this kind of things : (I was a senior code reviewer in past job)
Obviously, the real code is more complicated, but you maybe see the same things.
When I was student, a professor say «object programing was invented to replace
And it is not as falsy as this sound...
if [ elefant -eq flying ] ; then do_walk elefant fi
Bash:
[elefant -eq flying ] && do_walk elefant
I see in a lot of code this kind of things : (I was a senior code reviewer in past job)
Code:
if ( condition ) then return true else return false
Obviously, the real code is more complicated, but you maybe see the same things.
When I was student, a professor say «object programing was invented to replace
if
statement»And it is not as falsy as this sound...