On Jun 2, 2014, at 3:42 PM, Roman Klochkov <kalimeh...@mail.ru> wrote:

> Is there a way to disable all contract checks? 
> 
> Suppose, I debugged my program and sure that it is reliable. I disable 
> debugging, but as I understand, contracts are still checked in every function.
> But I want to maximize the performance of my program. Is there a way to do 
> that or I have to manually hack racket/contract/base to do that?


No. 

;; --- 

Programmers who disable assertion checking as they are deploying software are 
like people who wear life vests on land when they learn about the theory of 
sailing and take them off as soon as they board the boat for practical 
exercises on the water. -- somebody famous 

;; --- 

You will need to define a version of provide and/or contract-out that throws 
away contracts based on a switch. 

Or you check out option contracts and use those. 

-- Matthias


____________________
  Racket Users list:
  http://lists.racket-lang.org/users

Reply via email to