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

is equiv/is tighter/is looser underdocumented #1730

Open
zoffixznet opened this issue Jan 12, 2018 · 1 comment
Open

is equiv/is tighter/is looser underdocumented #1730

zoffixznet opened this issue Jan 12, 2018 · 1 comment
Labels
docs Documentation issue (primary issue type)

Comments

@zoffixznet
Copy link
Contributor

zoffixznet commented Jan 12, 2018

is equiv/is tighter/is looser actually set all the other properties, not just precedence and is tighter/looser set associativity to left-associate (technically, they delete assoc key, but I think that's same as setting it to left). Also, if both is tighter and is looser are set, the speculation says the precedence would be somewhere in the middle, but that's not the currently implemented behaviour in Rakudo (unsure what the spec says)

Doesn't look like the docs mention this fact.

Also, if "all the other properties" includes something more than associativity (based on this, thunky is included as well, but that's likely just an internal thing), then a way to indicate how to JUST set precedence should be listed.

P.S.: worth mentioning there's RT#132713 and RT#132711 that may affect how Rakudo implementation currently behaves with these traits.

@coke coke added the docs Documentation issue (primary issue type) label Jan 17, 2018
@JJ JJ self-assigned this Jan 26, 2018
JJ added a commit that referenced this issue May 10, 2018
Closes #2005, and maybe helps a little bit #1730.

Also learn new words (from previous additions)
@ab5tract
Copy link
Contributor

ab5tract commented Jul 3, 2020

Bumping this as I just noticed that there is no mention of precedence setting in the "Creating Operators" tutorial: https://docs.raku.org/language/optut

@coke coke unassigned JJ Feb 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation issue (primary issue type)
Projects
None yet
Development

No branches or pull requests

4 participants