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.
[HD Pg 146, Sec. 6.2.0 - create-ternary-constructs]
Moderator: admin
-
- Posts: 60
- Joined: Thu Apr 15, 2021 12:21 pm
- Contact:
-
- Site Admin
- Posts: 10046
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: [HD Pg 146, Sec. 6.2.0 - create-ternary-constructs]
Sure. Thanks for your feedback!
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 54 guests