Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom readers and REPL #91

Open
suhr opened this issue Dec 1, 2022 · 0 comments
Open

Custom readers and REPL #91

suhr opened this issue Dec 1, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@suhr
Copy link
Contributor

suhr commented Dec 1, 2022

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.

@Eugleo Eugleo added the enhancement New feature or request label Feb 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants