GithubHelp home page GithubHelp logo

Comments (5)

mrkkrp avatar mrkkrp commented on June 1, 2024 1

Closing for now then.

from modern-uri.

mrkkrp avatar mrkkrp commented on June 1, 2024

I don't know, I think it's best to analyze after the fact and then report a custom failure pointing to beginning of URI. Proliferation of parsers for concrete cases doesn't sound good to me.

from modern-uri.

Ericson2314 avatar Ericson2314 commented on June 1, 2024

Well, individual parsers for URI components matching nonterminals from the RFC avoids the combinatorial explosion.

from modern-uri.

mrkkrp avatar mrkkrp commented on June 1, 2024

Then the user must know how to combine these sub-parsers, which means he/she must know stuff that should be abstracted by the library. I myself now don't remember subtleties of URI parsing now, as a user I'd want things to stay simple to use and understand.

That said, if you need this, then we could create an "internal" module or two with almost anything you like. PRs are welcome.

from modern-uri.

Ericson2314 avatar Ericson2314 commented on June 1, 2024

I took a look https://tools.ietf.org/html/rfc3986. Wow, things look complicated. (Not sure if it's so because there's lots of intrinsic edge cases, or because of how they tweaked the grammer for sake of parser efficiency.) I guest post-hoc validation is fine for now :).

from modern-uri.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.