Skip to content

Immutable alternatives to Vector, Box, Sexp, Syntax-E and Syntax for Typed/Racket

License

Notifications You must be signed in to change notification settings

SuzanneSoy/tr-immutable

Repository files navigation

Build Status, Coverage Status, Build Stats, Online Documentation.

tr-immutable

Immutable alternatives to Vector, Box, Sexp, Syntax-E and Syntax for Typed/Racket.

This library wraps vectors and boxes so that Typed/Racket recognises them as immutable. This means that (make-predicate (IVectorof Integer)) works, whereas (make-predicate (Vectorof Integer)) is rejected by current versions of Typed/Racket (due to the fact that vectors are mutable).

This should make it possible to write code operating on syntax objects (containing these immutable vectors), so that typed macros can be written.

There seem to be plans for support for immutable vectors in Typed/Racket at some point in the future. When this happens, this library will be changed to rely on the official immutable vectors.

About

Immutable alternatives to Vector, Box, Sexp, Syntax-E and Syntax for Typed/Racket

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages