lang: interfaces: Add more information about graph semantics

Sam thoughts.
This commit is contained in:
James Shubin
2025-04-19 13:02:51 -04:00
parent 9c1c587f7b
commit 60a3d7c65e

View File

@@ -86,7 +86,9 @@ type Stmt interface {
TypeCheck() ([]*UnificationInvariant, error) TypeCheck() ([]*UnificationInvariant, error)
// Graph returns the reactive function graph expressed by this node. It // Graph returns the reactive function graph expressed by this node. It
// takes in the environment of any functions in scope. // takes in the environment of any functions in scope. Intended to be
// called only once, creates and returns the graph and also stores it to
// be used in .Output if needed.
Graph(env *Env) (*pgraph.Graph, error) Graph(env *Env) (*pgraph.Graph, error)
// Output returns the output that this "program" produces. This output // Output returns the output that this "program" produces. This output