A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.racket-lang.org/reference/contracts.html below:

8 Contracts

Contracts🔗

Contracts in The Racket Guide introduces contracts.

The contract system guards one part of a program from another. Programmers specify the behavior of a module’s exports via (provide (contract-out ....)) or (require (contract-in ...)), and the contract system enforces those constraints.

Contracts

come in two forms: those constructed by the various operations listed in this section of the manual, and various ordinary Racket values that double as contracts, including

Contract combinators are functions such as -> and listof that take contracts and produce other contracts.

Contracts in Racket are subdivided into three different categories:

For more about this hierarchy, see the section “Impersonators and Chaperones” as well as a research paper [Strickland12] on chaperones, impersonators, and how they can be used to implement contracts.

Changed in version 6.1.1.8 of package base: Changed +nan.0 and +nan.f to be equal?-based contracts.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4