1
0
dust/examples/variables.ds

13 lines
306 B
Plaintext
Raw Permalink Normal View History

2023-08-23 02:20:42 +00:00
# Dust is data-oriented, so variables are declared with minimal syntax. A
# single character, the assignment operator (`=`), sets a variable.
x = 1;
y = "hello dust!";
z = 42.0;
list = (3, 2, x);
big_list = (x, y, z, list);
map.x = "foobar";
function = '
message = "I am a function!";
output message;
';