Int Parser on just "-" #36
Answered
by
mbrandonw
mortigenus
asked this question in
Q&A
-
Is it expected for an Int parser to return 0 when the input is just "-"? I would expect parser to fail unless there's a digit after the minus sign, but I wanted to know what others think before posting it as an issue. |
Beta Was this translation helpful? Give feedback.
Answered by
mbrandonw
May 27, 2021
Replies: 1 comment 1 reply
-
Hey @mortigenus, thanks for the report! I think this is a bug because We'll fix it soon or if you have time to give it a shot feel free! |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
mortigenus
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @mortigenus, thanks for the report! I think this is a bug because
Int
's initializer does not parse"-"
:Int("-") == nil
. 😕We'll fix it soon or if you have time to give it a shot feel free!