Is there a way to make

parse(Int, " - 42 ")

throw an error, or substitute with a different function that does this?

Note that I am not advocating that this should be invalid syntax, just
want to have a "strict" version for reading a dataset that throws an
error unless the integer is not of the "optional sign followed by
digits", without reimplementing Base.parse if possible.

Reply via email to