Skip to content

Commit

Permalink
Add reference for subtyping notation
Browse files Browse the repository at this point in the history
  • Loading branch information
kwannoel committed May 14, 2021
1 parent 2c8f466 commit 104f8c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion poof.scrbl
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ a function from @r[Self] and @r[Super] to @r[Self].
(code:comment "(deftype (Proto Self Super) (Fun Self Super -> Self st: (<: Self Super)))")
(code:comment "fix : (Fun (Proto Self Super) Super -> Self st: (<: Self Super))")
(code:comment "mix : (Fun (Proto Self Super) (Proto Super Sup2) -> (Proto Self Sup2))")
(code:comment "Note: \"<:\" is a Type Constraint for subtyping (see Appendix B.4)")
]

@(noindent)
Expand Down Expand Up @@ -263,7 +264,7 @@ imaginary values bound to the respective slots @r[x] and @r[y] of its
]

@(noindent)
That prototype doubles the number in slot @r[x] that it @emph{inherits} from its @r[super] record:
This prototype doubles the number in slot @r[x] that it @emph{inherits} from its @r[super] record:
@Examples[
(code:comment "$double-x : (Proto (Fun 'x -> Number | A) (Fun 'x -> Number | A))")
(define ($double-x self super)
Expand Down

0 comments on commit 104f8c6

Please sign in to comment.