Reading diagrams / Topic 15 of 42
Following values
The rule
The structure lens draws something the layers lens cannot: where values come from and where they go. Bosatsu values never change after they are made, so the lens can follow each one exactly. Its pictures are lines of text, grouped by question.
Two of its pictures answer what the layers diagram could not. “Values built by one definition, step by step” lists how a value is built, in order. “Functions handed in and applied” lists each place a function received as a value is called, and what happens to its result.
- A line confirms what it says.
- A line narrower than the statement rules the statement out, as “only inside a branch” rules out “always”.
- The lens records how values are built, not when effects run, so order at runtime is still a can’t tell.
The Koa program, through the structure lens.
Loading the structure picture.
How to read this: what each mark in these pictures means
Loading the worked examples and practice.