[racket] Embedded docs

From: Mark Carter (mcturra2000 at yahoo.co.uk)
Date: Thu Apr 7 13:46:04 EDT 2011

Responder wrote:
--- begin ---
You need to enable @{...} syntax.

If you module currently starts

#lang racket/base

change it to

#lang at-exp racket/base

which mixes @{...} syntax support onto the `racket/base' language.

--- end ---

My reply:

It doesn't work. I get 
 module: illegal use (not at top-level) in: (module maths racket (provide 
http-get) (require racket/port) (require net/url) (require scribble/srcdoc) 
(provide/doc (proc-doc/names http-get (-> string? string?) (string-url) ("Say 
something meaningful about http-get."))) (define (http-get url-as-string) 
(port->string (get-pure-port (string->url url-as-string)))))

It seems that you can't mix #lang declaration with a module.

What else you got?

You know, I never get all this hard work in python.



Posted on the users mailing list.