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

REPL should be able to handle multiple lines of input #21

Open
hrs opened this issue Sep 21, 2015 · 1 comment
Open

REPL should be able to handle multiple lines of input #21

hrs opened this issue Sep 21, 2015 · 1 comment

Comments

@hrs
Copy link
Owner

hrs commented Sep 21, 2015

Right now, if we try to enter a multi-line expression on the REPL, it'll throw an error and exit. Instead, we should catch those errors (where appropriate) and let the user keep typing on the next line.

We could also try to determine if an expression is balanced and use that information instead. What do other lisps do?

@hrs
Copy link
Owner Author

hrs commented Apr 1, 2016

Haskell uses :{ and :} delimiters to indicate that an expression spans multiple lines. That's a cute idea, but it's only necessary because Haskell can't rely on parenthesized expressions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant