There has been discussion whether the #lang racket
line should be included in code golf submissions.
So really the question is two-fold:
- The technical aspect: Is it possible to run Racket code without the
#lang racket
line? - Poll: If it isn't possible to run Racket code without the
#lang racket
line, should this it be necessary in code golf submissions?
Edit
It turns out one can use #!racket
instead of #lang racket
as a shorter alternate form.
Edit 2
It turns out you do not strictly need the #lang racket
when you do this: racket -e "$(< your-racket-file.rkt)"
or possibly more likely racket -e "$(pbpaste)"
or similar.
Edit 3
Even simpler -- racket -f your-racket-file.rkt
works without #lang racket
.