Re: Why not == ?

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu