nim-stack-strings
nim-stack-strings copied to clipboard
Library for guaranteed zero heap allocation strings
Presently procedures are annotated `raises: [SomeDefect]` this causes warnings cause raise is only meant for `CatchableErrors` there is no `Defect` tracking.
Makes a new base type `StackStringBase[T; Size: static Natural]` that has a generic parameter for the string length size. For backwards compatibility purposes, `StackString[N: static Natural]` is defined as a...
alternative PR calculating the minimal int size for comparison to having it as a generic param.
Thanks for the library! What do you think about making `lenInternal` customizable to different int types? Alternatively the smallest `lenInternal` size could be figured out at compile time. I've been...