Start with one small Musi file. You do not need a full app first. A small file is enough to learn how names, values, and expressions fit together.
Think of a Musi file like a short recipe card. Each name gives one ingredient or one step. The final expression is the plate you put on the table.
The first pages show how to install the tools, read a file from top to bottom, bind names with let, use sequence expressions, and change a value with mut when change is useful.
By the end of this part, you can open a small file and say what each line gives to the next line.
Chapters
Start
Chapter»Getting startedMusi source files end in
.ms. Start with one small file and run one command.Chapter»First programA Musi file reads from top to bottom. The last expression can be the result for direct file checks.Chapter»Reading Musi codeFirst find names, imports, exports, and final expressions. Then read each body.Chapter»CommentsUse comments for why, doc comments for public names, and names or types for what.Chapter»Values and letlet gives a name to a value. export let makes the name public.Chapter»Blocks and expressionsUse parenthesized sequence expressions for local steps, and braces for structural forms.Chapter»MutationMutation is visible. Reassignment writes to an existing mutable place.