.nib std
nib 0.3.1-pre

Pre-release documentation. This describes nib 0.3.1-pre, which is on main and has no release yet: what it documents beyond 0.3.0 may change before it ships.

module always in scope

Symbol

0.2's name for Handle, still accepted through 0.3 so a 0.2 program compiles; write Handle in new code.

Symbol was renamed Handle in 0.3. Symbol.make(…) and a Symbol in a type are still accepted, as the same thing — Symbol.make("a") is a Handle — so a program written against 0.2 keeps compiling. Everything on this page is true of Handle, under that name.

Functions

funcmake
func make :: String -> Handle

A new symbol, distinct from every symbol made before it. desc is a description that appears when the symbol is printed; it is not part of the identity, so two symbols made from the same description are still different. An empty description prints as just the number.

#[Symbol.make("alpha"), Symbol.make("alpha"), Symbol.make("")]
#[Handle(alpha)#1, Handle(alpha)#2, Handle(3)]