-
-
Notifications
You must be signed in to change notification settings - Fork 372
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
"string" but False !eqv "string" but False #3507
Comments
Given your example, the respective types as reported by Of course it would be nicer if in this case the type would be something like |
Yeah, it's correct, it's just not useful.
Yeah, that would pretty much exactly by what I would hope for. |
According to the documentation of infix Theoretically, Raku could memoize the anonymous roles it creates, but I doubt that is very practical. So I suggest using
|
I think this can be closed now. |
The documentation can be explained to do either thing. Pointing at it isn't much of an argument to do the less helpful of the two options.
I'm pretty sure that mixing in booleans is 95% of all runtime mixins of a value. In particular, «$string but False» is a value that's generated by the core argument parsing
That is not a very helpful suggestion when raku itself gives me |
This doesn't look like such a difficult issue. It's really just a matter of caching a parameterizable role per value type, or am I missing something? The only challenge I can see is that it probably has to happen in NQP. |
Ultimately, if we want them to be |
The Problem
say "foo" but False eqv "foo" but False
Expected Behavior
This should print True
Actual Behavior
It prints False
I'm guessing this is because their types are different due runtime mixing in.
Environment
This is Rakudo version 2020.01 built on MoarVM version 2020.01.1
implementing Perl 6.d.
The text was updated successfully, but these errors were encountered: