[HD Pg 146, Sec. 6.2.0 - create-ternary-constructs]
Posted: Wed Jul 21, 2021 2:36 pm
I think it would be worth it to mention somewhere in this chapter that the third part of the ternary operate can't be omitted. The else of an if(-else) statement can be omitted, but this doesn't work with ternaries.
I tried oca last week and remember asking myself if it was possible to leave out the third part, as one of the options had a nested ternary with one third-part missing.
I tried oca last week and remember asking myself if it was possible to leave out the third part, as one of the options had a nested ternary with one third-part missing.