Tuples
Tuples group a fixed number of values without defining a named type.
fn user() -> #(String, Int):
#("Donna", 1)
They are useful for small internal values.
fn package_info() -> #(String, String):
#("donna_stdlib", "0.1.1")
Tuples can also be matched in case.
fn describe(pair: #(String, Int)) -> String:
case pair:
#(name, count) -> name
Use a custom type when the data deserves names. Tuples are sharp tools. Do not juggle them for attention.