[erlang-questions] Any Erlang Devs Contemplating Elixir?

Andrew Berman rexxe98@REDACTED
Sat Apr 23 01:05:21 CEST 2016

Valid point.  Then why test on is_uri?  Every string should come back as

On Fri, Apr 22, 2016 at 4:04 PM Kenneth Lakin <kennethlakin@REDACTED>

> On 04/22/2016 03:56 PM, Andrew Berman wrote:
> > In Elixir when I do URI.parse(""),
> > I get no error and everything returned is nil.  Why?  It's clearly not a
> > valid URI...
> I don't agree. As I mentioned in my mail, it looks like the URL parser
> of both Python and Elixir are kinda using RFC 1808's rules for URL
> validity. My interpretation of section 2.2 indicates that the empty
> string is a valid relative URL. (A URL can be a relativeURL, which can
> be a rel_path, which -I think- can be zero characters.)
> Moreover, if Elixir is doing it wrong, then so is Python. Note that both
> URL parsers in question are in the standard libraries of their
> respective languages.
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20160422/c51b03fa/attachment.htm>

More information about the erlang-questions mailing list