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

! meta operator not documented #1227

Closed
LLFourn opened this issue Mar 1, 2017 · 6 comments
Closed

! meta operator not documented #1227

LLFourn opened this issue Mar 1, 2017 · 6 comments

Comments

@LLFourn
Copy link
Contributor

LLFourn commented Mar 1, 2017

I just go burnt because I thought !== was the shorthand for negated === like != is the shorthand for ==. Turns out !== is actually the same as != and the right answer is !===. I went to the docs and noticed:

  1. !== is not searchable (!= is)
  2. !=== isn't mentioned anywhere /operators
@b2gills
Copy link
Contributor

b2gills commented Mar 1, 2017

!=== is not an operator.

It is the ! meta operator combined with the === operator.

!= is just an alias to !== which is also a combination of two operators.

(I personally think that != should be deprecated, partially for this reason)

@coke coke added the search label Mar 6, 2017
@coke
Copy link
Collaborator

coke commented Mar 29, 2017

We could allow any search for !foo (perhaps only under Infix/Postfix, etc.) to return foo as a hit.

@LLFourn
Copy link
Contributor Author

LLFourn commented Mar 30, 2017

@b2gills I agree with deprecating !=. Fundamentally, its existence was the source of my confusion.

Since ! is a metaoperator I think the if you're searching for !== for example it should just come up with ! (negation meta operator) and == as different results. The negation meta operator page doesn't exist, we only have ! (prefix). I'm going to rename this ticket to reference that instead.

On another point we have a [https://docs.perl6.org/language/operators#Meta_Operators](meta operators) section, but there is nothing listed underneath and it doesn't explain the concept at all.

@LLFourn LLFourn changed the title negated infixes not searchable ! meta operator not searchable Mar 30, 2017
@AlexDaniel
Copy link
Member

Woah, woah… deprecating !=. What a big stretch :)

That said, now that we have , I wouldn't miss != at all.

@AlexDaniel AlexDaniel changed the title ! meta operator not searchable ! meta operator not documented Sep 3, 2017
@AlexDaniel
Copy link
Member

It's not that ! metaop is not searchable, it seems we have no documentation for it at all.

@AlexDaniel
Copy link
Member

Actually, it is documented in https://docs.perl6.org/language/operators#Negated_Relational_Operators.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants