<div dir="ltr">Valid point.  Then why test on is_uri?  Every string should come back as true.</div><br><div class="gmail_quote"><div dir="ltr">On Fri, Apr 22, 2016 at 4:04 PM Kenneth Lakin <<a href="mailto:kennethlakin@gmail.com">kennethlakin@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 04/22/2016 03:56 PM, Andrew Berman wrote:<br>
> In Elixir when I do URI.parse(""),<br>
> I get no error and everything returned is nil.  Why?  It's clearly not a<br>
> valid URI...<br>
<br>
I don't agree. As I mentioned in my mail, it looks like the URL parser<br>
of both Python and Elixir are kinda using RFC 1808's rules for URL<br>
validity. My interpretation of section 2.2 indicates that the empty<br>
string is a valid relative URL. (A URL can be a relativeURL, which can<br>
be a rel_path, which -I think- can be zero characters.)<br>
<br>
Moreover, if Elixir is doing it wrong, then so is Python. Note that both<br>
URL parsers in question are in the standard libraries of their<br>
respective languages.<br>
<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div>