Skip to content

Values

Start with backtick-delimited Text, numeric literals, and true/false Truth values. Double-quoted declaration names identify values; they are not Text literals.

demo/paragraphs/public-values.l
Publicly define "Greeting" as `public`.
Publicly define "Count" as 7.
Publicly define "Enabled" as true.
Create "Shared" as a New Public Dictionary.
Create Shared's "Display|-s|-ed|-ing|-er" for Showing any Text.
Show Greeting.
Show Count.
Show Enabled.

Complete program. Source: demo/paragraphs/public-values.l.

Example evidence

Public paragraph scalars and project-owned vocabulary Dictionary. existing-witness-not-run. Evidence guide.

The three public declarations survive the paragraph boundary. Show Greeting, Show Count, and Show Enabled write public7true without spaces or line breaks. The Dictionary provides a vocabulary namespace.

"Display|-s|-ed|-ing|-er" gives one action several grammatical forms: Display, Displays, Displayed, Displaying and Displayer. Each ending applies to the root. L uses these explicit forms rather than guessing English spelling. See vocabulary and inflection for noun/verb forms and spelling rules.

demo/basic/main.l (lines 3–3)
"message" is `Hello World!`.

Fragment. Source: demo/basic/main.l (lines 3–3).

Example evidence

Text declaration from the complete Hello World program. existing-witness-not-run. Evidence guide.

message receives the Text Hello World!, including its space, as in the first program.

Text preserves its bytes. Periods and whitespace inside it are not sentence boundaries. A backslash followed by n remains two characters; it is not a newline escape.

IO.Print adds a newline; Show writes Text exactly. Captured App Output is also Text. Read it after completion; a stored copy keeps its bytes even if the App runs again.

demo/paragraphs/public-values.l (lines 2–2)
Publicly define "Count" as 7.

Fragment. Source: demo/paragraphs/public-values.l (lines 2–2).

Example evidence

Number declaration from the complete public-values example. existing-witness-not-run. Evidence guide.

Count receives the Number 7, written without quotes or backticks. Publicly makes the name available after the paragraph.

Number uses finite binary64 values, so large integers and fractions can round. See the Number reference for accepted spellings, precision and limits.

Other categories require their own contracts

Section titled “Other categories require their own contracts”

Use Primitive Types, Iterative Types and Applicational Types for construction, copying and sharing rules.

Continue with names and paragraphs.


Canonical source: docs/guide/values.md.