Page 1 of 1

[HD Pg 146, Sec. 6.2.0 - create-ternary-constructs]

Posted: Wed Jul 21, 2021 2:36 pm
by enthunoob
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.

Re: [HD Pg 146, Sec. 6.2.0 - create-ternary-constructs]

Posted: Thu Jul 22, 2021 5:59 am
by admin
Sure. Thanks for your feedback!