9.0
top
← prev up next →

choose-lang: Pick #lang at read-timeπŸ”— i

Meta-language for selecting a #lang as the module is initially read.

For example, the following module raises a type error if the environment variable CHOOSE_TYPES is set, and otherwise ignores the type annotation.

#lang choose-lang (if (getenv "CHOOSE_TYPES") typed/racket typed/racket/no-check)
 
(:fInteger)
(define f' foo)
top
← prev up next →

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /