Den 2015-10-02 kl. 18:50, skrev Sara Golemon:
On Mon, Sep 28, 2015 at 2:29 PM, Björn Larsson
<bjorn.x.lars...@telia.com> wrote:
... or if someday in the future comparison operator
without type juggling is needed.
You just blew my mind. Trying to imagine where strict
greater-than-or-equal would be used, and more to the point: What you'd
make strict grater than look like. `>>>`? Nope, you'd have heredoc
conflict on strict-less than `<<<`.
-Sara
Glad I managed to do that :) What I had in mind was strings
compared with int, like: "2 horses" > 1. And yes, syntax is
a bit blocked...
Leaves the options, >==, <== or >>=, <<=. But I don't like the
last ones. One might also consider extending the spaceship
operator to <==> for strict comparison.
I don't have a strong opinion on relevant use cases for this, so
I leave it at that.
/Cheers //Björn/
PS Think I blew my own mind a little too ;)