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
antipairs sub is not implemented #3782
Comments
Having implemented BTW, this also goes for other string methods, like |
@AlexDaniel this would be easy to implement. Why don't you give it a try? |
@lizmat OK, I didn't know about starts-with and friends. Should I add them too? |
If you think antipairs should be added, why should starts-with and friends not be? |
Okay. I'm too tired physically today but I'll get back to it later. |
Can this issue be closed? Or should someone else add these subs? |
I don't see why it would be closed. Anyone else is free to do it, yes. Or you can just wait, I don't have that many tickets assigned to me but I do have a backlog of things to do. |
By the way, @lizmat, have you thought about some kind of automated way of creating subs for existing methods? As I see it, currently both should be created manually, but maybe there's a way to, let's say, just mark a method that a sub should exist too? Maybe even user libs should be able to use the same mechanism so that they can provide APIs that feel like rakudo std lib does. |
To illustrate: class Foo {
has $.x;
submethod bar { $.x × 2 }
}
Foo.new(:42x).bar.say; # 84
say bar Foo.new(:42x); # 84 (Yes, it doesn't work because |
Now, how to do the |
The text was updated successfully, but these errors were encountered: