-
-
Notifications
You must be signed in to change notification settings - Fork 252
Add polyvar docs (latest) #173
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
Conversation
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 amazing! thanks for your hard work on the docs.
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.
Good stuff!
```res | ||
// This doesn't actually need any color type definition | ||
// beforehand | ||
let myColor = #Red |
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.
Can we add the js output?
|
||
### Upper Bound (`[<`) | ||
|
||
The upper bound works in the exact opposite way: The extending type may only use constructors that are stated in the lower bound constraint. |
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.
The upper bound works in the exact opposite way: The extending type may only use constructors that are stated in the lower bound constraint. | |
The upper bound works in the exact opposite way: the extending type may only use constructors that are stated in the lower bound constraint. |
Content: - recursive types - JS output for relevant snippets - Variant vs polymorphic variant section
@bobzhang @IwanKaramazow @jchavarri thanks for your feedback! I addressed all your raised issues and actually added some more content that I forgot:
etc etc |
Fixes #154