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
- 
				enthunoob
 - Posts: 57
 - Joined: Thu Apr 15, 2021 12:21 pm
 - Contact:
 
- 
				admin
 - Site Admin
 - Posts: 10443
 - 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!
			
			
									
									
						Who is online
Users browsing this forum: No registered users and 19 guests