You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Short closures with no parameters: Task.async(() -> compute()) and Test.crashes(() -> list.get(5).unwrap()) replace the fn () ... end block form for one-expression thunks.
koja doc lists protocol conformances. Each struct, enum, and builtin page has a "Conforms to" section with the protocols from the type header and from impl blocks, the requirement functions under each one, and the condition of a conditional impl such as where T: Equality. A function with no @doc shows the protocol requirement's doc.
Protocol pages list their implementors. Search and koja doc <symbol> resolve conformance functions such as Int.band.
Changed
_ = expr is a discard. It evaluates expr and binds nothing, so one body can discard values of different types. Reading _ is an unknown identifier error. Before, _ was an ordinary local whose type was fixed at its first assignment.
koja format puts one blank line between the fields (or enum variants) of a type and its nested constants. Consecutive constants still stack.
Fixed
koja format breaks an assigned method chain after = and keeps each call flush with the chain root. Before, a chain whose first call overflowed left ) on its own line above an indented .with_password(...).
Constants can hold Option.None, directly or in a struct field, such as const EMPTY: Slot = Slot{ref: Option.None}.
Constant type errors show the full type, such as Option<Int>, instead of only Option.