stringviews
nimony/src/lib/stringviews.nim
A better stdlib would offer this...
type pchar = ptr UncheckedArray[char]type StringView = object p: ptr UncheckedArray[char] len: int64
template [](s: StringView; i: int64): charproc ==(a: StringView; b: StringView): boolproc ==(a: StringView; b: string): boolproc startsWith(s: StringView; prefix: string): boolproc add(s: var string; b: StringView)proc $(s: StringView): stringproc toStringViewUnsafe(s: string): StringViewWatch out that the string lives longer than the string view!
proc hash(a: StringView): uint64