R
Robert Mannl
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
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