29 — Readership: the declaration with more than one reader

After this lesson you will be able to say what a primitive's props schema promises and to whom, and name the parties that read it besides the component; explain why the registry can compare four of a primitive's declarations against its schema and cannot compare the schema against the component; say what property an unplaced slot has that an unread prop does not, and what follows for any check built on watching output; describe how to make a read observable and what changes about the checker when you do; read a sweep that finds seven suspects and say, for each, whether it is a defect, a limit of the measurement, or correct by design; and — the half this lesson is really for — say why the component does not read this prop was the wrong question, and what the right one is.

Prerequisites: 01, 02, 03, 04, 05, 06, 07, 08, 09, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28.

Lesson 28 ended on a rule and an instruction. The rule: a check is a comparison, and a unique thing has nothing to be compared to. The instruction that follows from it is to go looking for facts this repository already writes down twice and has never compared — because those are the cheap ones, the ones where the second copy is already sitting there and all that is missing is the comparison.

Here is one. A primitive declares what props it accepts. Its component then reads some props out of a bag. Those are two statements of one fact, in one file, usually thirty lines apart.

Nothing in Loom compares them.

That sounds like an oversight, and the first half of this lesson is about why it is not one. The second half is about what happens when you write the comparison anyway — which this lesson did, and the answer it gave was eighteen rows, not one of which was the thing it was looking for.

Reading what you have done so far…