all repos — min @ 930446301c575da44f3dff0ebaafef772846aebe

A small but practical concatenative programming language.

Copy editing
Yanis Zafirópulos 1265028+drkameleon@users.noreply.github.com
Mon, 02 Nov 2020 11:03:24 +0100
commit

930446301c575da44f3dff0ebaafef772846aebe

parent

fdabc891754a802e6bb690f3d3232aebf68c34b2

1 files changed, 3 insertions(+), 3 deletions(-)

jump to
M site/contents/learn-data-types.mdsite/contents/learn-data-types.md

@@ -10,13 +10,13 @@

boolean : **true** or **false**. integer -: A 64-bit integer number like 1, 27 or -15. +: A 64-bit integer number like 1, 27, or -15. float : A 64-bit floating-point number like 3.14 or -56.9876. string : A series of characters wrapped in double quotes: "Hello, World!". quotation -: A list of elements, which may also contain symbols. Quotations can be be used to create heterogenous lists of elements of any data type, and also to create a block of code that will be evaluated later on (quoted program). Example: (1 2 3 + \*) +: A list of elements, which may also contain symbols. Quotations can be used to create heterogenous lists of elements of any data type, and also to create a block of code that will be evaluated later on (quoted program). Example: (1 2 3 + \*) dictionary : A key/value table. Dictionaries are implemented as an immediately-dequoted quotation, are enclosed in curly braces, and are represented by their symbol definitions. Note that dictionary keys are symbols and therefore can only contain characters allowed in symbols. The {#link-module||dict#} provides some operators on dictionaries.

@@ -31,7 +31,7 @@ > "concatenative" :paradigm

> 2017 :first-release-year > } -The {#link-module||logic#} provides predicate operators to check if an element belong to a particular data type or pseudo-type (`boolean?`, `number?`, `integer?`, `float?`, `string?`, `quotation?`, `dictionary?`). +The {#link-module||logic#} provides predicate operators to check if an element belongs to a particular data type or pseudo-type (`boolean?`, `number?`, `integer?`, `float?`, `string?`, `quotation?`, `dictionary?`). Additionally, the {#link-module||lang#} provides operators to convert values from a data type to another (e.g. {#link-operator||lang||int#}, {#link-operator||lang||string#}, and so on).