Eugleo / magic-racket

The best coding experience for Racket in VS Code
https://marketplace.visualstudio.com/items?itemName=evzen-wybitul.magic-racket
GNU General Public License v3.0
199 stars 29 forks source link

Custom readers and REPL #91

Open suhr opened 1 year ago

suhr commented 1 year ago

Racket allows to use custom readers with #lang. For example:

#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.