Skip to content

Commit 9da6a65

Browse files
committed
Explain difference between Exact-Complex and Exact-Number.
1 parent 85b2855 commit 9da6a65

File tree

1 file changed

+8
-0
lines changed
  • typed-racket-doc/typed-racket/scribblings/reference

1 file changed

+8
-0
lines changed

typed-racket-doc/typed-racket/scribblings/reference/types.scrbl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,14 @@ Exact-Imaginary
9797
Inexact-Imaginary)]
9898
These types correspond to Racket's complex numbers.
9999

100+
@ex[
101+
(ann 1+1i Exact-Number)
102+
(ann 1+1i Exact-Complex)
103+
(ann 1+0i Exact-Number)
104+
(eval:error (ann 1+0i Exact-Complex))
105+
(ann 0+1i Exact-Number)
106+
(eval:error (ann 0+1i Exact-Complex))]
107+
100108
@history[#:changed "1.7"]{@elem{Added @racket[Imaginary],
101109
@racket[Inexact-Complex],
102110
@racket[Exact-Complex],

0 commit comments

Comments
 (0)