diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-06-28 14:16:12 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-06-28 14:17:37 -0400 |
| commit | 59811c3d764e0aee7899601bf5c524c661890e39 (patch) | |
| tree | cda4169d7a7ed01ef2d01c2f3356239d52852d65 /doc | |
| parent | 35a7ff22e400968ef1d9b89bb43564197f43f001 (diff) | |
Link to primitive commentary page
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/primitive.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/primitive.md b/doc/primitive.md index 99c716e5..481ab2b3 100644 --- a/doc/primitive.md +++ b/doc/primitive.md @@ -2,7 +2,7 @@ # BQN primitives -*Primitives* are the basic functions and modifiers built into the language, written with individual glyphs. The role of a primitive when written always matches its type (but you can use its value in other roles by assigning it, or other methods). +*Primitives* are the basic functions and modifiers built into the language, written with individual glyphs (more about the concept [here](../commentary/primitive.md)). The role of a primitive when written always matches its type (but you can use its value in other roles by assigning it, or other methods). Primitives have no side effects other than errors, and can't perform infinite computations, except when a primitive modifier calls an operand function that does one of these things (this can only happen when arguments are passed, as primitive modifiers are always deferred). Side effects here include both writing state such as variables or printed output, and reading any outside state, so that a function without them always returns the same result if passed the same arguments. Since trains and list notation have the same nice properties, tacit code written entirely with primitives, trains, and lists always describes finite, self-contained computations. |
