Skip to main content

Module literal

Module literal 

Source
Expand description

Writing a value out as a literal, in a language, against its type.

Without a type, a record is only a bag of names and there is nothing better to write than a map. With one, it is a Circle, and what should come out is whatever that language says for constructing one.

This is the half of “move a value between languages” that the reading side already had: text goes in and becomes a value of a known type, and here that value goes back out as something you can paste into a source file.

Structs§

Constructors
How one language writes the parts a value is made of.

Functions§

typed
Writes a value as a literal of ty.