Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beta/One: Introduce IS and ISN'T #830

Open
hostilefork opened this issue Jul 4, 2018 · 1 comment
Open

Beta/One: Introduce IS and ISN'T #830

hostilefork opened this issue Jul 4, 2018 · 1 comment
Assignees
Labels
type.wish a.k.a. new feature request
Milestone

Comments

@hostilefork
Copy link
Member

hostilefork commented Jul 4, 2018

In a language which purports to be an elegant rethinking of accidents of history, the historical behavior of = and == provide the worst of all worlds. The presence of the C derived == gives a suggestion that its complementary operator would be !=, while its complement is actually !==. Offering programmers an = operator which claims that %fOo = <FoO> is true and that to tell they are different you have to use %fOo !== <FoO> is bad.

This issue is to track the Beta/One objective of implementing the suggestion of using IS and ISN'T for lax equality and inequality (prefix is?, isn't?), and taking over = and <> for strict equality (which would be known as equal? and its complement, perhaps the boring not-equal?...(matches IF-NOT, WHILE-NOT) or the non-hyphenated unequal?, different? etc?

https://forum.rebol.info/t/strict-equality-lax-equality-equivalence-sameness-is-and/349/17

@hostilefork hostilefork added this to the Beta/One milestone Jul 4, 2018
@hostilefork hostilefork changed the title Wish: Make = follow strict equality rules, use IS for lax comparison Beta/One: Make = follow strict equality rules, use IS for lax comparison Jul 4, 2018
@hostilefork hostilefork changed the title Beta/One: Make = follow strict equality rules, use IS for lax comparison Beta/One: Make = follow strict equality rules Jul 4, 2018
@hostilefork hostilefork self-assigned this Jul 4, 2018
@hostilefork hostilefork added the type.wish a.k.a. new feature request label Jul 4, 2018
@hostilefork hostilefork pinned this issue Jan 29, 2019
@hostilefork
Copy link
Member Author

This is being reconsidered to a less invasive solution:

https://forum.rebol.info/t/compatibility-idea-is-and-isnt-replacing-and-not-and/1133

@hostilefork hostilefork changed the title Beta/One: Make = follow strict equality rules Beta/One: Introduce IS and ISN'T Mar 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type.wish a.k.a. new feature request
Projects
None yet
Development

No branches or pull requests

1 participant