Re: Why not == ?
- Posted by achury Nov 05, 2022
- 694 views
What I mean in the original post. Is that compare 2 sequences is a very frequent action, and equal() is not very ergonomic. So would be nice to have a shorthand for it.
Manual says that "? x" is a shorthand for "pretty_print(1, x)"
Would be nice if
"a==b" or "a===b" become a shorthand for "equal(a, b)"
The triple equal is nice because is not easy to write it as mistyping. On javascript means that compare value and type, so is equivalent to the function of equal()
Marco Achury