GithubHelp home page GithubHelp logo

Better URL scheme/name demangling about hyde HOT 4 OPEN

adobe avatar adobe commented on June 15, 2024
Better URL scheme/name demangling

from hyde.

Comments (4)

fosterbrereton avatar fosterbrereton commented on June 15, 2024

I agree that what we have right now is not pretty. The problem is that those characters are not unreserved according to the URI specification, so we have to mangle them. If you have an alternate solution that is more legible and equally functional, let me know.

from hyde.

mrzv avatar mrzv commented on June 15, 2024

Well, one hack would be to borrow angle brackets from unicode. U+3008 and U+3009,〈〉. From my cursory reading, they are allowed in URIs, but not in C++ identifiers. (This could be wrong, I didn't dig too deep.) There are some obvious downsides, but it's a solution.

from hyde.

mrzv avatar mrzv commented on June 15, 2024

In the same spirit, but looking a little bit better are small less and greater unicode signs, U+FE64 and U+FE65, ﹤﹥.

from hyde.

fosterbrereton avatar fosterbrereton commented on June 15, 2024

Originally I was going to restrict the characters to the URI RFC, which requires that any non-unreserved characters be encoded. This would also require Unicode characters to be UTF-8 encoded and then escaped. However I am starting to rethink my decision on this, and am willing to consider using the IRI standard for naming instead. That would give us a lot more flexibility in terms of the characters we can use in the paths, and would let us scale back the kind of mangling we'd need to do. I appreciate your input; let me think about it a bit more.

from hyde.

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.