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="Robert Mannl, post: 4483374"] Hi! I'm more or less an amateur programmer, but I have fallen in love with Ruby. I have an improvement idea for Ruby - I don't know if this is the best place to post this, but I thought it might spark some discussion about whether adding this "feature" would be healthy for the language or not. Let's suppose we have a method called: "some_method?". Why not allow writing ternary operator expressions like this: some_method? a : b instead of some_method? ? a : b It feels way more natural, Rob [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
Ternary operator request
Top