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

Error on a block used by syntax sugar #128

Open
mcamp opened this issue May 9, 2016 · 1 comment
Open

Error on a block used by syntax sugar #128

mcamp opened this issue May 9, 2016 · 1 comment

Comments

@mcamp
Copy link
Collaborator

mcamp commented May 9, 2016

Take the program:
(machine m
(state bar)
(state foo)
(on [1] bar -> foo)
)
(spawn m bar)

The block inside the transition "on" should return a boolean, but here it returns a number. The error window in LRP notify about this error, but in a non-understandable way, because of the syntax sugar behind this statement.

@jfabry
Copy link
Owner

jfabry commented May 9, 2016

The problem is generic for all errors that occur in a statement that is generated by sugar.

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

No branches or pull requests

2 participants