You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
724 B
Plaintext
11 lines
724 B
Plaintext
9 years ago
|
#lang scribble/manual
|
||
|
|
||
|
@(require scribble/eval (for-label racket sugar))
|
||
|
|
||
|
@title{Include}
|
||
|
@defmodule[sugar/include]
|
||
|
|
||
9 years ago
|
@defform[(include-without-lang-line path-spec)]
|
||
|
Inline the syntax in the file designated by @racket[_path-spec], after stripping off the @tt{#lang} line of the file (if it exists, otherwise just @racket[include] the file as usual).
|
||
9 years ago
|
|
||
9 years ago
|
Why? So you can take the code from a working source file and recompile it under a different @tt{#lang}. Why? Well, you could take code from a @tt{#lang typed/racket} source file and recompile as @tt{#lang typed/racket/no-check}. Why? Because then you could make typed and untyped modules from the same code without the mandatory contracts imposed by @racket[require/typed].
|