From 8d184e26b93ea71e2cb96674189635f3d790e269 Mon Sep 17 00:00:00 2001 From: Omar Rizwan Date: Thu, 7 Mar 2024 18:09:45 -0500 Subject: [PATCH] README: Start process --- README.md | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 778baf97..35e98604 100644 --- a/README.md +++ b/README.md @@ -514,18 +514,15 @@ When when /personVar/ is cool /lambda/ with environment /e/ { } ``` -#### On +#### On and Start -General note: the `On` block is used for weird non-reactive -behavior. - -You should _not_ use `When`, `Claim`, or `Wish` directly inside an -`On` block; those only make sense inside a normal reactive context. +FIXME: General note: the `On` and `Start` blocks are used for weird +non-reactive behavior. Need to fill this out more. -##### On process +##### Start process ``` -On process A { +Start process A { while true { puts "Hello! Another second has passed" exec sleep 1 @@ -535,6 +532,10 @@ On process A { ##### On unmatch +You should _not_ use `When`, `Claim`, or `Wish` directly inside an +`On unmatch` block; those only make sense inside a normal reactive +context. + ``` set pid [exec python3] On unmatch { @@ -542,6 +543,7 @@ On unmatch { } ``` + #### Non-capturing You can disable capturing of lexical context around a When with the