Skip to content

Let expression cannot occur within another expression #39

Description

@mmatsa

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions