From 233e53634789ef13466f85082890027427bbfbcf Mon Sep 17 00:00:00 2001 From: Sam Caldwell Date: Mon, 21 Sep 2015 18:31:34 -0400 Subject: [PATCH 1/2] Add a bit about #f events to the FAQ --- FAQ.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/FAQ.md b/FAQ.md index d5b9390..c8a6e6f 100644 --- a/FAQ.md +++ b/FAQ.md @@ -259,3 +259,8 @@ * Can I split a prospect program across multiple files? - Only one module with `#lang prospect` can be used at a time. + +* Why does `#f` keep getting sent as an event? + - When a behavior returns something besides `#f` in response to an event, it is + repeatedly sent `#f` until it does return `#f`. + - Think of it as a way of the network asking "anything else?" From ecb42dbbe309b626ca9d4583e918c249b0894465 Mon Sep 17 00:00:00 2001 From: Sam Caldwell Date: Tue, 22 Sep 2015 14:46:14 -0400 Subject: [PATCH 2/2] Fix typo in FAQ --- FAQ.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FAQ.md b/FAQ.md index c8a6e6f..e2694a5 100644 --- a/FAQ.md +++ b/FAQ.md @@ -61,7 +61,7 @@ * How do I create a process/actor? ```racket ;; single actor - (spawn (lambda (event state) ... (transaction state' (list action ...))) + (spawn (lambda (event state) ... (transition state' (list action ...))) initial-state initial-action ...) ;; network of actors