![]() The expr/c syntax class, as well as its underlying implementation function, wrap-expr/c, previously produced misleading error messages. The main purpose of these tools is to ensure a user-provided expression conforms to a macro-provided contract. However, contract errors produced by these forms were consistent with situations where both value and contract were provided by the same party. This fixes the discrepancy by changing how these forms assign blame to emulate contract errors that arise from improper function arguments, since most expressions provided to macros are semantically similar to function arguments. All examples within the documentation itself reflect this use case. These changes alter the contents of error messages raised by expr/c and wrap-expr/c, which could theoretically break some test suites, but it’s extremely unlikely that any non-test code would depend on the precise wording of contract error messages, and the interface is otherwise completely backwards-compatible. fixes #1412 |
||
---|---|---|
pkgs | ||
racket | ||
.gitattributes | ||
.gitignore | ||
.mailmap | ||
.travis.yml | ||
appveyor.yml | ||
INSTALL.txt | ||
Makefile | ||
README.md |
This is the source code for the core of Racket. See "INSTALL.txt" for full information on building Racket.
To build the full Racket distribution from this repository, run make
in the top-level directory. To build the Minimal Racket, run make base
.
The rest of the Racket distribution source code is in other repositories under the Racket GitHub organization.
Contribute to Racket by submitting a pull request, joining the development mailing list, or visiting the IRC channel.
License
Racket Copyright (c) 2010-2017 PLT Design Inc.
Racket is distributed under the GNU Lesser General Public License (LGPL). This implies that you may link Racket into proprietary applications, provided you follow the rules stated in the LGPL. You can also modify Racket; if you distribute a modified version, you must distribute it under the terms of the LGPL, which in particular states that you must release the source code for the modified software.
See racket/src/COPYING_LESSER.txt for more information.