-
-
Notifications
You must be signed in to change notification settings - Fork 72
Open
Labels
Description
In the student languages' signature (type) annotations, function
mixed is used to describe mixed data or, as they are sometimes
called in HtDP, itemizations:
(define StringOrInteger (signature (mixed String Integer)))An itemization is usually described in HtDP with the structured
natural language form:
A StringOrInteger is one of:
- a String
- an Integer
Having one-of as a synonym of mixed would help make formal type
declarations closer to the structured natural language form used in
HtDP:
(define (StringOrInteger (signature (one-of String Integer))Reactions are currently unavailable