-
Notifications
You must be signed in to change notification settings - Fork 292
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
“Identity element” section with an explanation and a table of Raku ops #2129
Comments
Maybe include it in the Math document? It's a mathematical concept, after
all...
|
There are 71 messages in the thread about identity operators: https://groups.google.com/forum/#!topic/perl.perl6.language/YIWdmJ54buw |
Which refs #2129. Missing is a link from where this is used.
I don't like the table as it is confusing and doesn't answer the question for some ops. For example, what about What about I think the table should list all operators, maybe group them if you like. I don't think there's necessarily a need to check the source code as you can just do |
At its current state, the section is quite informative. For now, I see a couple of issues in the table:
.. as @AlexDaniel mentioned, e.g. |
Updated the Bool::True item - Someone needs to verify that the junction and o items are spec or "only" rakudo's implementation. |
See https://en.wikipedia.org/wiki/Identity_element.
I think this should be discussed in Perl 6 docs (not just linked to wikipedia). We can have a similar table that specifically lists perl 6 ops.
For example, identity element for
~
is an empty string (""
), even though~
can be used for Blobs. There's a separate trap for that particular detail (see #2124), but it should be discussed in main docs also in context of identity elements (or maybe reduction).The text was updated successfully, but these errors were encountered: