qore
qore copied to clipboard
FixedLengthUtil should throw an error if int, float, or number fields contain invalid characters (such as alphabetic chars) to ensure that the output is correct
this is "invisible" because it's in unreleased functionality
What if Qore::parse_float() and Qore::parse_number() would accept 3rd arg "bool strict = False" that would turn on strict parsing that might throw an exception (if input looked e.g. "1x2") ?
Otherwise implementing this feature is unnecessary "complex" for floats and numbers (while it's easy for integers).
Btw, I think this is more a bug than a feature.