From 8542bc4073c51175a89215c260d33b305cbdbc00 Mon Sep 17 00:00:00 2001 From: Vincent St-Amour Date: Fri, 14 Jan 2011 14:35:47 -0500 Subject: [PATCH] Edit TR's optimizer's docs to reflect that Float-Complex is the only complex type that can be optimized. original commit: 5dbc752542ec6dec03fb4060ecff16a8cfb5a095 --- collects/typed-scheme/scribblings/optimization.scrbl | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/collects/typed-scheme/scribblings/optimization.scrbl b/collects/typed-scheme/scribblings/optimization.scrbl index dbe65aa7..6124fdd2 100644 --- a/collects/typed-scheme/scribblings/optimization.scrbl +++ b/collects/typed-scheme/scribblings/optimization.scrbl @@ -70,8 +70,7 @@ highest precision possible. On a similar note, the @racket[Float-Complex] type is preferable to the @racket[Complex] type for the same reason. Typed Racket can keep -@tech[#:doc '(lib "scribblings/reference/reference.scrbl") #:key -"inexact numbers"]{inexact} +float @tech[#:doc '(lib "scribblings/reference/reference.scrbl")]{complex numbers} unboxed; as such, programs using @tech[#:doc '(lib "scribblings/reference/reference.scrbl")]{complex numbers} @@ -80,9 +79,7 @@ represent @tech[#:doc '(lib "scribblings/reference/reference.scrbl")]{complex numbers} as two @tech[#:doc '(lib "scribblings/reference/reference.scrbl")]{real numbers}. -As with floating-point literals, -@tech[#:doc '(lib "scribblings/reference/reference.scrbl") #:key -"inexact numbers"]{inexact} +As with floating-point literals, float @tech[#:doc '(lib "scribblings/reference/reference.scrbl") #:key "complex numbers"]{complex} literals (such as @racket[1.0+1.0i]) should be preferred over exact