![]() The old implementation turns a single optional argument into two arguments: the optional value and a boolean to indicate whether the optional value is supplied. The new expansion uses `unsafe-undefined` in place of not-supplied arguments, in the general case. If the default-value expression is simple enough, however, it is copied to call sites that would otherwise supply `unsafe-undefined`. In the common case where the default value is `#f`, for example, no run-time test is needed in the core implementation function to check whether the default is supplied, because a `#f` will be filled in for callers. The performance improvement is tiny to non-existent for realistic programs, but the simpler and reduced generated code may help in the long run. |
||
---|---|---|
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 minimal Racket, run make base
.
The rest of the Racket distribution source code is in other repositories, mostly 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-2018 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.