-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Labels
enhancementNew feature or requestNew feature or request
Description
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
'ain scope of a polymorphic exception declaration. - (optional) Brief aside about explicit type variable quantification in
funandvaldeclarations in SML.
T-Brick and kevinazhou150T-Brick and kevinazhou150
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request