2. Every value has a place in one order
All CUE values sit in one order, from top, which is any value, down to bottom, which is an error; lower means more specific, and two values can sit side by side.

2. Every value has a place in one order

All CUE values sit in one order, from top, which is any value, down to bottom, which is an error; lower means more specific, and two values can sit side by side.

Once everything is in one order, questions like "does this data fit this schema" become "is this below that".

CUE puts every value in one order. Number is above int. Int is above seven.

Lower means more specific. We say seven is an instance of int.

Eight is an instance of int too. Seven and eight sit side by side. Neither is above the other.

It works like a guessing game. Before any answer, it could be anything. Each answer narrows it down.

The very top is written as an underscore. It means any value at all.

Below everything is bottom. It is how CUE writes an error. So an error is not outside the order. It is the lowest point.

Check yourself. What sits at the very top of CUE's order, and what sits at the very bottom?

Do you like what you are reading? Subscribe to receive updates.

Unsubscribe anytime

Connections0
2. Every value has a place in one order2. Every value has a plac…
Citations 0Children & links 0

Loading child documents…

Connections show where other documents or comments link to this document.

Related documents

Loading connections…