-
Notifications
You must be signed in to change notification settings - Fork 96
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
Design pattern: User-defined functor in Motoko #13
Comments
The |
Isn't this issue more appropriate for the main Motoko repo? Any decent answer would involve changes to the language. |
Okay, but if we move this discussion, should we also move the other one (about "a style guide")? (Is this not just another question about style? "Birds of a feather"...?) |
Summarizing @rossberg from the team meeting:
(But here I am using state in the returned object, so perhaps a class is best after all?)
I think the answer posed by the issue has been sufficiently answered for me, for now. |
This issue is tracking the answer to the question: How does one write what could be an SML/OCaml-style functor in Motoko, using the current language features?
As one example (WIP): Adapton functor from the Adapton package.
The text was updated successfully, but these errors were encountered: