all repos — min @ 9c5d2091080b136934ceb55d115a0d2f84969a14

A small but practical concatenative programming language.

Merge pull request #158 from celtic-coder/master

Fabio Cevasco h3rald@h3rald.com
Sun, 12 Sep 2021 22:36:28 +0200
commit

9c5d2091080b136934ceb55d115a0d2f84969a14

parent

d7848c359236012db57a463088ed4d9c65d74d59

2 files changed, 5 insertions(+), 1 deletions(-)

jump to
M site/contents/get-started.mdsite/contents/get-started.md

@@ -43,8 +43,10 @@ * perform HTTPS requests with the {#link-module||http#}.

* use all the cryptographic symbols defined in the {#link-module||crypto#}. If this flag is not specified: + * It will not be possible to perform HTTPS requests * Only the following symbols will be exposed by the {#link-module||crypto#}: + * {#link-operator||crypto||md5#} * {#link-operator||crypto||sha1#} * {#link-operator||crypto||encode#}
M site/contents/learn-operators.mdsite/contents/learn-operators.md

@@ -29,6 +29,7 @@ ) operator

;; Calculates the square of n. The {#link-operator||lang||operator#} symbol provides way to: + * Specify the name of the symbol operator (**square** in this case) * Specify a signature to identify the type of the input and output values (in this case, the operator takes a numeric input value and produces a numeric output value). Also, note how inputs and outputs are captured into the `n` and `result` symbols in the signature quotation and then referenced in the body quotation. * Specify a quotation containing the code that the operator will execute.

@@ -44,11 +45,12 @@

Note that this feels like using {#link-operator||lang||define#}, but the main difference between {#link-operator||lang||lambda#} and {#link-operator||lang||define#} is that `lambda` only works on quotations doesn't auto-quote them, so that they are immediately evaluated when the corresponding symbol is pushed on the stack. Also note that unlike with {#link-operator||lang||operator#}, symbols defined with {#link-operator||lang||lambda#}: + * have no built-in validation of input and output values. * do not support the `return` symbol to immediately end their execution. * have no built-in stack pollution checks. -> %tip +> %tip% > Tip > > You can use {#link-operator||lang||lambda-bind#} to re-set a previously set lambda.