class utilities
private utilities()
pass
static String s(string the string)
return base stringunbox(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 utildefault 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 utilvalue 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 utilvalue identifier(the value), colon, detailsto string, close bracket)
static overload noreturn void panic(string message)
runtime utildo panic(s(message))
static overload noreturn void panic(String message)
runtime utildo panic(message)
static void stack(String message)
runtime utildo stack(message)