Louis Pilfold
Louis Pilfold
Hello @Lioncat2002 ! Are you working on this atm?
@dvic The example you give there doesn't need to be changed, it's only when a parameter is used once that it is invalid. What you've suggested it be changed to...
Huh. OK I don't understand what's happening here. It says "once" but it's clearly used twice. Is this a bug in erlc?
I've opened an issue with Erlang/OTP to find out if this warning is emitted incorrectly, or if the text is misleading.
Thank you. This is all very confusing to me. I guess we add seemingly redundant qualifiers to everything!
Looks like I'm totally wrong about how they work. https://github.com/erlang/otp/issues/8533
I think so? It's still incorrect though unfortunately.
Could be good! The plan is to let the stdlib and the new decoder API settle for a while so we can see how people find it before making any...
> I'd argue that decode.float should just not fail on "0", I want a float, so it should just work. How would you decode only a float in that case?...
The case is any situation in which you want specifically a float and would reject an int. This is commonplace.