class utilities
private utilities()
pass
static String s(string the string)
return base string • unbox(the string)
static boolean eq(readonly equality comparable or null first, readonly equality comparable or null second)
first null : first is null
second null : second is null
if first null && second null
panic("double nulls in comparison")
if first null || second null
return false
return runtime util • default equivalence(first, second)
static open bracket : "["
static close bracket : "]"
static colon : ": "
static overload string describe(readonly value the value)
return base string • new(open bracket, runtime util • value identifier(the value), close bracket)
static overload string describe(readonly value the value, readonly stringable details)
if details is null
return describe(the value)
else
return base string • new(open bracket, runtime util • value identifier(the value), colon, details • to string, close bracket)
static overload noreturn void panic(string message)
runtime util • do panic(s(message))
static overload noreturn void panic(String message)
runtime util • do panic(message)
static void stack(String message)
runtime util • do stack(message)