-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Currently you can call all of these functions within a sifting pattern, but you can't bind a function's return value to a logic variable. In practice, this means that only some of the functions (those returning a boolean or usefully boolean-coercible value) are useful, and functions can only be used to directly check yes/no conditions.
The planned syntax for binding function return values looks like this:
(event ?e1 where
?prevEntityID: (dec ?e1))...i.e., an unbound undotted logic variable followed directly by a function call.
The relevant TODO comment in the current version of compiler.js is located here:
Line 170 in 837807e
| // 3. lhs is unbound undotted lvar, rhs is fncall (TODO handle this case) |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request