This has been brought up long ago, but I thing it deseves to be discussed here in the Idea exchange.
There are situations where it might be beneficial if we could have a string datatype that has a defined length. Arrays of such string would be stored flat in memory.
Application would include:
The default value would be a string of the defined lenght filled with \00. Shorter inputs would get padded with \00
Of course certain operations would drop the length, e.g. when concatenating such strings, the length would get dropped from the result, turning it into a plain string.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.