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

Implement EvVoid -> Allow for Non-returning statements #720

Closed
Tracked by #836
OAGr opened this issue Jun 20, 2022 · 0 comments
Closed
Tracked by #836

Implement EvVoid -> Allow for Non-returning statements #720

OAGr opened this issue Jun 20, 2022 · 0 comments
Assignees
Labels
Interpreter The core squiggle execution engine (reducer) Language Regarding Squiggle language semantics, distributions and function registry

Comments

@OAGr
Copy link
Contributor

OAGr commented Jun 20, 2022

  • _ Is refactor
  • x Is new feature
  • _ Concerns documentation

Description of suggestion or shortcoming:

Right now the following code breaks:

4
foo = 4

This is because all statements before the final statement must be variable declarations.

It would be good to allow these void() statements, for logging, and easier iteration.

@OAGr OAGr added Language Regarding Squiggle language semantics, distributions and function registry Interpreter The core squiggle execution engine (reducer) labels Jun 20, 2022
@umuro umuro closed this as completed Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Interpreter The core squiggle execution engine (reducer) Language Regarding Squiggle language semantics, distributions and function registry
Projects
None yet
Development

No branches or pull requests

2 participants