Understanding words and values

A text in any language consists of words that have meaning, such as total, temperature, and values, which carry a data value, for example, 500 and 37.5°C. A program or script written in the Red language, likewise, consists of a series of words, which represent code, and values, which represent data. When executing a program, Red has to evaluate every word to obtain a value. Every value in Red source code has a type.

A word can, for example, be a name for a variable or a function, either created by the developer or built into the language. All the different words in a program, whether predefined or user-created, form its dictionary. By using well-chosen words for variables, blocks, objects, and functions, you ...

Get Learn Red - Fundamentals of Red now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.