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
- Poll: If it isn't possible to run Racket code without the
#lang racketline, should this it be necessary in code golf submissions?
It turns out one can use
#!racket instead of
#lang racket as a shorter alternate form.
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.
Even simpler --
racket -f your-racket-file.rkt works without