Open suhr opened 1 year ago
Racket allows to use custom readers with #lang. For example:
#lang
#lang sweet-exp racket define (fact n) if (zero? n) 1 {n * (fact {n - 1})}
Unfortunately, this does not work so well with REPL:
> + 2 2 #<procedure:+> 2 2
It would be nice to convert selection into an s-exp before sending it to REPL.
Racket allows to use custom readers with
#lang
. For example:Unfortunately, this does not work so well with REPL:
It would be nice to convert selection into an s-exp before sending it to REPL.