Skip to content
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

Include section on polymorphic exception declarations #51

Open
sonyasimk opened this issue Mar 19, 2022 · 0 comments
Open

Include section on polymorphic exception declarations #51

sonyasimk opened this issue Mar 19, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@sonyasimk
Copy link
Contributor

We should consider writing a subsection in the Exceptions article about how to declare polymorphic exceptions and how to get the type variable 'a in scope of the declaration. Some things that could be included:

  • Example of a bad polymorphic exception declaration (i.e. declaring a polymorphic exception top-level).
  • Motivation for why a polymorphic exception declaration should have a polymorphic type variable in scope. I think a good way to motivate this would be by comparing polymorphic datatype declarations to exception declarations.
  • Showing how we can get 'a in scope of a polymorphic exception declaration.
  • (optional) Brief aside about explicit type variable quantification in fun and val declarations in SML.
@T-Brick T-Brick added the enhancement New feature or request label Mar 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants