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
Maybe overrides more parent methods #2437
Maybe overrides more parent methods #2437
Conversation
A Maybe object lazily constructs an operation as an object instead of performing it immediately. Its implementation remains incomplete necessarily, in the current form. This commit adds a few common collection methods and fixes the example in the helpfile.
^this.composeNAryOp(\myMethod, args) | ||
} | ||
} | ||
:: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO extensions to built-in classes are a bad habit. I'm not necessarily saying that you should remove this example, but maybe warn of the possible dangers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extensions for existing classes are not bad – this was the point about adding class extensions in the first place, I think. What you mean, I suppose, is that here we make the subclass override methods of its superclass?
I think this is fine. Opinions? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks okay to me, although I don't understand Maybe too well.
ping |
honk honk, anyone else want to look at this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this looks good! Thanks for honking
This fixes #2436