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

Let expression cannot occur within another expression #39

Open
mmatsa opened this issue Feb 7, 2017 · 0 comments
Open

Let expression cannot occur within another expression #39

mmatsa opened this issue Feb 7, 2017 · 0 comments

Comments

@mmatsa
Copy link
Contributor

mmatsa commented Feb 7, 2017

Let expressions can not be used within other expressions today.
Lionel asked me to add an issue for this.

This would support use like this:

rule MyRule()
→
Result(
  [binding ]->
  let #ans1 = OtherFunction(binding)
  let #ans2 = OtherOtherFunction(binding, #ans1)
  #ans2
  )

Today, without this fix, such use gets an error like this:

Error: Let expression cannot occur within another expression: it must be a the top-level expression.

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