This repository was archived by the owner on Dec 12, 2023. It is now read-only.
v0.3.0
This is a major change to Lucy introducing 2 major changes:
Invoke is now callable
Using invoke now requires you call it like a function.
state start {
invoke(thing) {
}
}
Otherwise it is unchanged.
Symbols
Symbols are explained in the docs. In short they provide a mechanism for references something that needs to be passed in on the JavaScript side, such as a guard function. The syntax for symbols is a : followed by a name, similar to how they are used in Ruby and Elixir.
state idle {
pay => guard(:hasFunds) => processing
}