Skip to content

Commit

Permalink
doc: comment on values vs. All (#508)
Browse files Browse the repository at this point in the history
An `(All (A) ....)` doesn't quantify over `(Values ....)` types
  • Loading branch information
bennn authored and samth committed Mar 6, 2017
1 parent b24507a commit 1b62cdf
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,9 @@ functions and continuation mark functions.
types @racket[t ...]. This can only appear as the return type of a
function.
@ex[(values 1 2 3)]}
Note that a type variable cannot be instantiated with a @racket[(Values ....)]
type. For example, the type @racket[(All (A) (-> A))] describes a thunk that
returns exactly one value.
@defform/none[v]{where @racket[v] is a number, boolean or string, is the singleton type containing only that value}
@defform/none[(quote val)]{where @racket[val] is a Racket value, is the singleton type containing only that value}
@defform/none[i]{where @racket[i] is an identifier can be a reference to a type
Expand Down

0 comments on commit 1b62cdf

Please sign in to comment.