3 ms·
parsing from a string to a string runs the risk of erroneously assigning the original value to the new string. Which kinda defeats the whole parsing, not valida
by Akronymus 2y ago
parsing from a string to a string runs the risk of erroneously assigning the original value to the new string. Which kinda defeats the whole parsing, not validating.
What would work is having a small object holding a readonly string which parses the original on creation, then becomes immutable.