uri_string weird inconsistency

Loïc Hoguin essen@REDACTED
Sat Nov 23 17:20:43 CET 2019


Hello,

Why does uri_string:normalize/1 catch a throw and return an error tuple, 
but uri_string:normalize/2 does not? Both are documented functions and 
this behavior difference is not documented, besides the 2-arity not 
having error() as a returned type: 
http://erlang.org/doc/man/uri_string.html#normalize-1

Is this an oversight perhaps?

Cheers,

-- 
Loïc Hoguin
https://ninenines.eu



More information about the erlang-questions mailing list