[racket] Is it necessary to add #lang racket in module?

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Thu Feb 27 07:12:27 EST 2014

No, 

#lang racket 
(provide run)
(define (run x) x)

is exactly the same as 

(module <synthetic name> racket
 (provide run)
 (define (run x) x))




On Feb 27, 2014, at 4:25 AM, Haulyn Jason wrote:

> Hi,
> 
> I am writing some modules, is it necessary to add #lang racket before my module code?
> 
> my module is like:
> 
> (module my-module racket
>    (provide run)
> 
>    (define (run)
>        (printf "it works")
>    )
> )
> 
> Thanks.
> ____________________
> Racket Users list:
> http://lists.racket-lang.org/users



Posted on the users mailing list.