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

interpreter to allow calculator style usage (no print required) #451

Open
trentgill opened this issue Nov 15, 2021 · 0 comments
Open

interpreter to allow calculator style usage (no print required) #451

trentgill opened this issue Nov 15, 2021 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@trentgill
Copy link
Collaborator

currently, when you want to inspect values via the REPL (druid / norns / max etc), you currently have to wrap your element in a print() call. this gets awkward especially because you have to add characters to both start & end of the string.

instead i'd love to see an extension to the interpreter that pass statements to print under the hood. this could either by a raw call, or we could require typing = first like in many languages.

> var = 42

-- current behaviour
> var --> ERROR
> print(var) --> 42

-- 1) explicit = style
> = var --> 42

-- 2) implicit style
> var --> 42

for thoughts on implementation, take a look at the lua interpreter as it handles this. i think it previously (<5.3) required =, but now works directly (5.3+).

this will make interactive development far faster & less annoying.

@trentgill trentgill added enhancement New feature or request help wanted Extra attention is needed labels Nov 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant