[racket] rudimentary Q. about lambda + contracts

From: Matthew Butterick (mb at mbtype.com)
Date: Wed Nov 13 13:12:52 EST 2013

Having gotten in the habit of writing function contracts, I prefer define/contract to (provide (contract-out ...)) because it keeps the contract near the function.

Is there an analogous idiom for lambda? I see there is no lambda/contract, and the docs on contracts for case-lambda [1] uses the (provide (contract-out ...)) style.

[1] http://docs.racket-lang.org/guide/contracts-general-functions.html#(part._contracts-case-lambda)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20131113/93d05d8e/attachment.html>

Posted on the users mailing list.