Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
Ternary operator request
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="David A. Black, post: 4483384"] Hi -- I imagine it would be a nightmare to parse, for Ruby and for the human eye. if x? 1 : 2; end Is that: if x?(1) then 2; end or if x? ? true : true; end etc. (Not great examples, I know, but they indicate how vexed the ? and : could get.) I also think the two ?'s in question, though both ?'s, are really semantically quite distinct. There's always 'if' :-) David [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
Ternary operator request
Top