From 770b1203f42db6eaca65c08194e7051e3f262a05 Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Wed, 11 Dec 2019 10:19:16 +1100 Subject: [PATCH] Add glossay entry for effect syntax --- doc/glossary.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/glossary.md b/doc/glossary.md index 92b46897..48a022bf 100644 --- a/doc/glossary.md +++ b/doc/glossary.md @@ -20,6 +20,10 @@ An extension of the type system, such as purity (freedom from side effects), applied to functions. See the [effects](/doc/note/effects.md) note for more details. +Syntactically, effects are the exclamation and question marks, `!` and `?`, at +function definitions and function calls. These denote impure and +[coroutine](/doc/note/coroutines.md) functions. + #### Fact A boolean expression (e.g. `x > y`) that happens to be true at a given point in