Programs
Programs
What a program needs around it: input, flags, files, time, tests and more.
prompt("Your name: ")
flag("port", 8080), –port=9000
env.get("PORT", 8080), env.set, .env files with env.load
file("notes.txt").read(), write, add, exists, delete, size, open (a handle: read(at, n), write(at, data), locks)
shell("ls -la"), shell(["git", "status"]): their output as a str
date, time, datetime, d.days(3), a.until(b).days()
random.int(1, 6), random.float(), random.pick, random.shuffle, random.seed
assert total == 42, fn test_…() in hello_test.luma, luma test
wait(ids, fetch) calls a function for every element at the same time; wait(2) pauses
freed automatically when no longer used, free(x), -memcheck