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)
____________________
  Racket Users list:
  http://lists.racket-lang.org/users

Reply via email to