Strict Equality, Lax Equality, Equivalence, Sameness: IS and =

With the design of "arrow words" framed up, I think it's time to lay this issue to rest, and just say these are all comparison operators in the default distribution.

  • >= and => mean the same thing: greater-or-equal?
  • <= and =< mean the same thing: lesser-or-equal?

What seems a little sad at the outset is that we are "wasting" =< and => on synonyms, and people from JavaScript won't be getting the familiar => as "lambda" by default. But -> is used in other languages for lambda, and it's light and clean looking. So it's probably preferable. And now there are a bunch of other arrow operators opened up.

In your own dialect or modules, you can make => and <= mean anything you want...redefine one or both. And there's no rule that >= or =< mean anything in particular either.

Case closed. :briefcase: :closed_lock_with_key:

2 Likes