Eric Dobson
86d5845bc4
Replace exclude-zero with commutative-equality/strict-filter.
...
Make it more obvious what the generated type is.
Also removes NaN from the specific type for flonums because that was
incorrect.
2015-05-02 08:26:48 -07:00
Eric Dobson
69e613c831
Simplify types for nan? and infinite?
2015-05-02 08:26:48 -07:00
Eric Dobson
e91cdad6b0
Tighten types on sgn.
2015-05-02 08:26:48 -07:00
Eric Dobson
ddd503a203
Fix type on integer-sqrt/remainder.
...
It doesn't return exact integers when given inexact input.
2015-05-02 08:26:48 -07:00
Eric Dobson
eeef1a7c55
Simplify types of integer-sqrt.
2015-05-02 08:26:40 -07:00
Eric Dobson
70fdc3dd13
Make flonum and ext-flonum types use the same definitions.
...
This avoids problems where one could be changed to fix a bug and the
other would be missed.
2015-04-28 20:27:44 -07:00
Vincent St-Amour
257d4ec9a7
Fix use of values in type of integer-sqrt/remainder
.
...
Closes PR 15034.
2015-04-28 17:49:53 -04:00
Asumu Takikawa
a80f55946d
Adjust error messages for : annotation form
...
Print better error messages for expression like
(: 2 Zero). Also fix and improve error messages for
multiple/missing types.
Closes PR 15044
2015-04-21 16:07:13 -04:00
Asumu Takikawa
3e0e3a4005
Add keyword argument for get/set-argb-pixels
...
Also simplify the types for bitmap-dc% too
2015-04-14 17:53:32 -04:00
Asumu Takikawa
c3a87fc5dd
Add a type for get-display-backing-scale
2015-04-10 18:57:35 -04:00
Andrew Kent
97e56fe506
Merge pull request #90 from andmkent/fieldobjs
...
better ->acc, fixed mutated private class field objs
2015-04-08 17:59:59 -04:00
Andrew Kent
cbbf5536d8
no objects for mutated private class fields
...
tidy up ->acc
2015-04-08 17:53:00 -04:00
Asumu Takikawa
7bf4314af4
Simplify Name type representation
...
Avoids contract errors by using a simpler representation
and sticking with it throughout.
2015-04-08 11:23:48 -04:00
Asumu Takikawa
d22bf8cc11
Fix type-name-env contracts and uses
2015-04-08 11:23:48 -04:00
Eric Dobson
f0c48cfb87
Make abs return its argument on -NonNegReal.
2015-04-07 09:50:33 -07:00
Eric Dobson
a522768b7e
Make tc-subst restrict returned types based on argument types.
2015-04-07 09:50:32 -07:00
Eric Dobson
7a29e8e369
Simplify cases in comparisons with -Zero or -RealZero
2015-04-07 08:23:32 -07:00
Eric Dobson
1ad0a2b181
Remove extra cases in comparisons for -One
2015-04-07 08:23:32 -07:00
Eric Dobson
b77bd862a0
Stop trying to represent rest objects because they are currently broken.
...
Closes #83 .
2015-04-07 08:13:38 -07:00
Eric Dobson
b8921ff4df
Fix contract on subst-type.
...
subst-type now can be called with Values? and such.
2015-04-06 09:58:06 -07:00
Eric Dobson
a33b27a3c9
Remove many cases of = that are unnecessary.
2015-04-05 19:10:51 -07:00
Eric Dobson
7b762933c6
Simplify the type of zero?.
2015-04-05 19:07:12 -07:00
Eric Dobson
be225976d3
Make subtype work with restricted filters.
...
Closes PR 15025.
2015-04-05 19:07:12 -07:00
Eric Dobson
db3826c474
Add comments for changes to substitution.
2015-04-05 18:01:11 -07:00
Alexis King
522e5fe45a
Remove dependency on compatibility-lib in the docs
2015-04-03 18:42:12 -07:00
Alexis King
e70617bf26
Replace let+ example with match; add margin note about Rec
2015-04-03 18:42:12 -07:00
Alexis King
2b6d979481
Add a note about struct subtyping
2015-04-03 18:42:12 -07:00
Alexis King
ffe1285828
Improve the guide section on recursive types
2015-04-03 18:42:12 -07:00
Alexis King
e3e73a8286
Update the guide to remove usages of legacy forms
2015-04-03 18:42:12 -07:00
Sam Tobin-Hochstadt
6a262c19fa
Add prefab structs to HISTORY.
2015-04-03 21:33:39 -04:00
Sam Tobin-Hochstadt
0793021514
History update for Typed Racket.
2015-04-03 18:45:38 -04:00
Sam Tobin-Hochstadt
583ca906b3
Significantly reduce dependencies.
...
In conjunction with a small change to syntax/parse, this means
that `typed/racket/base` no longer depends on `racket/set`,
`racket/contract/base`, or `racket/generic`.
Timings on my machine go from ~200ms for `#lang typed/racket/base`
as the whole file, to ~100ms. For comparison, `racket/base` is 30ms
and `#lang racket` is 150ms. `#lang typed/racket` is ~200ms with
this change.
Changes include:
- not using `in-syntax`
- switching to `syntax/parse/pre`
- avoiding `template` from `syntax/parse`
2015-04-03 12:50:55 -04:00
Asumu Takikawa
7b5478e0bc
Make Place-Channel <: (Evtof Any)
2015-04-02 11:00:25 -04:00
Asumu Takikawa
c70910aaa0
Fix type restriction in values->tc-results
...
Previously the restriction didn't account for traversing
the object type with the given path. This also relies on
the previous commit that adds subtyping on filters.
(because this change seems to introduce filters which
only differ by an unrolling of a recursive type, but
the old subtyping only worked for identical types)
2015-04-02 10:58:45 -04:00
Asumu Takikawa
8acc86bb9b
Add subtyping for types inside filters
...
This makes a type like
(-> Any Boolean : #:+ Integer)
a subtype of a type like
(-> Any Boolean : #:+ Number)
For not filters, the direction is reversed.
2015-04-01 18:54:00 -04:00
Eric Dobson
889d96ca78
Strengthen infinity checks in comparison operations.
...
This adds checks for infinity when comparing against reals and accounts
for NaNs.
2015-03-30 09:25:48 -07:00
Eric Dobson
3889036b12
Simplify types for positive? and negative?.
2015-03-30 09:12:51 -07:00
Eric Dobson
5de22c80f7
Make values->tc-results restrict to the original type of the object.
2015-03-30 09:12:25 -07:00
Eric Dobson
e5ea1f4bb6
Make zero? sound with regards to NaN.
2015-03-28 14:08:20 -07:00
Asumu Takikawa
8c329d4ddf
Fill in types for GUI ref section 4
2015-03-27 01:02:36 -04:00
Asumu Takikawa
f82ceece33
Add other missing exports for typed/racket/draw
2015-03-27 00:13:15 -04:00
Asumu Takikawa
f758a6ed42
Add record-dc% in typed/racket/draw
2015-03-26 23:07:07 -04:00
Sam Tobin-Hochstadt
718bc82b5d
Avoid providing def-redirect
.
2015-03-26 12:23:48 -04:00
Alexis King
85cbafc534
Fix the type of current-https-protocol in typed/net/url-connect
2015-03-26 09:06:16 -07:00
Alexis King
b54d8dc04a
Strengthen the types for member, memv, memq, and memf
...
Fixes #61 .
2015-03-25 16:44:42 -07:00
Alexis King
d2745f89eb
Modernize typed/net/url
2015-03-25 16:06:52 -07:00
Vincent St-Amour
b3bdb40ab7
Optimize pair operations, even in the absence of syntactic pair types.
2015-03-24 16:47:06 -04:00
Alexis King
2a4ce892ae
Merge branch 'integral-to-inexact'
2015-03-20 19:43:04 -07:00
Alexis King
aab2d9efcf
Include more specific types for integers converted to floats
2015-03-19 18:54:11 -07:00
Sam Tobin-Hochstadt
ee7bed777b
Add dependency on 6.2.0.2.
...
This is definitely needed for the new `begin-encourage-inline`
submodule, but also needed for various other changes (such as
`dynamic-object/c`).
2015-03-19 21:45:15 -04:00