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

Add persistent state for interactive mode #32

Open
Hoxmot opened this issue May 7, 2022 · 0 comments
Open

Add persistent state for interactive mode #32

Hoxmot opened this issue May 7, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@Hoxmot
Copy link
Owner

Hoxmot commented May 7, 2022

Currently, the state used in the interactive mode works only during a single interpretation. I can't declare a variable in the first line and call it in a second line:

>> (int x 42)

>> x

The above code throws an exception.

There's a workaround, where I try to keep one parenthesis open, but it's rather ugly:

>> (int x 42
>> ) x

I should add a persistent state for the interactive mode so that it's kept when the interpreter runs.

@Hoxmot Hoxmot added the enhancement New feature or request label May 7, 2022
@Hoxmot Hoxmot added this to the First release milestone May 7, 2022
@Hoxmot Hoxmot self-assigned this May 7, 2022
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

1 participant