[racket] Using prefix-out with contract-out together

From: Lawrence Woodman (lwoodman at vlifesystems.com)
Date: Sat Aug 3 02:51:47 EDT 2013


I would like to prefix the functions that I want to export from a module and
provide a contract for each exported function.  I tried the following style:

    (prefix-out mymodule-
                 [func-a (-> string? any)]
                 [func-b (-> string? any)])))

I realise that the code above doesn't work because contract-out is 
trying to bind
the contracts to the un-prefixed names.  Is there is cleaner way of 
doing this,
rather than just renaming the functions at definition time and using the 
full name
for the contracts?



vLife Systems Ltd
Registered Office: The Meridian, 4 Copthall House, Station Square, Coventry, CV1 2FL
Registered in England and Wales No. 06477649

Posted on the users mailing list.