racket / htdp

Other
91 stars 69 forks source link

Inconsistency w/signatures in, at least, BSL #192

Closed jasonhemann closed 1 year ago

jasonhemann commented 1 year ago

The scribble ultimately generated from beginner-funs.rkt contains a potentially confusing mix of conventions of basic type descriptions.

length says it returns a natural-number? random says it returns a natural list-ref consumes a natural? list? consumes any string-length returns nat make-list consumes natural-number and any/c

Shouldn't there be a fixed convention, be it contract-style /c, predicatized ?, or some non-predicate name for an underlying base type?

mfelleisen commented 1 year ago

Closed with 5ddbcc821f6dc8bcfaaebd22b208e0269caaa64f

jasonhemann commented 1 year ago

BTW: These were representative examples, not an exhaustive list.

mfelleisen commented 1 year ago

Sure, I’ll fix others by need, my favorite working mode and unfavorite PL :-)