Nil
Nil is Gleam's unit type. It is a value that is returned by
functions that have nothing else to return, as all functions must return
something.
Nil は Gleam の単位型です。全ての関数は何かを返さなければならないため、他に返すものがない関数が返す値です。
Nil is not a valid value of any other types, that is values in
Gleam are not nullable. If the type of a value is Nil then it is
the value Nil. If it is some other type then the value is not
Nil.
Nil は他の型では有効な値ではなく、Gleam の値は nullable ではありません。値の型が Nil の場合、それは値 Nil です。もし他の型であれば、その値は Nil ではありません。
Uncomment the line that assigns Nil to a variable with an
incompatible type annotation to see the compile time error it produces.
互換性のない型アノテーションを持つ変数に Nil を代入している行をアンコメントして、生成されるコンパイルエラーを確認してください。