jEFF (Jean-François Berroyer)
- Login: jEFF
- Email: jfberroyer@gmail.com
- Registered on: 06/07/2012
- Last sign in: 06/15/2012
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 1 | 1 |
Activity
06/15/2012
-
07:57 PM Ruby Feature #6555: New comparison operators
- =begin
A friend told me that D language provides 14 comparisons operators for Floating point comparisons : ((<URL:http://dlang.org/expression.html#RelExpression>))
I don't know how really useful it is in D, but it is interesting beca...
06/08/2012
-
09:19 PM Ruby Feature #6555: New comparison operators
- =begin
I understand your hesitation in adding 8 more operators. It is not a little change. I am also aware that in Ruby, we can do without operators since methods can fit everywhere we use operators.
I really appreciate that in Ruby,... -
01:05 AM Ruby Feature #6555: New comparison operators
- =begin
Ok, il will try to explain my mind.
Imagine objects that are naturaly ordered like in a tree structure. This is typically a partial order.
You would like to write (({a < b})) to test if a is a descendant of b, (({a > b})) if ...
06/07/2012
-
09:03 PM Ruby Feature #6555 (Rejected): New comparison operators
- =begin
x <=> y returns -1, 0, 1 or nil
(x <=> y) == -1 means "x less than y" and is the same as x < y
(x <=> y) == 0 means "x equal y" is the same as x == y
(x <=> y) == 1 means "x greater than y" and is the same as x > y
...