Giter Club home page Giter Club logo

Comments (5)

arp242 avatar arp242 commented on August 19, 2024

The TOML ABNF only lists the lower-case: https://github.com/toml-lang/toml/blob/1.0.0/toml.abnf#L127-L129, so according to that an upper-case isn't valid.

I don't know if there's a specific reason for that. I'll leave this open and I'll make a proposal to add upper-case too in the next version.

from toml-test.

dmbaturin avatar dmbaturin commented on August 19, 2024

Note that the ABNF file also allows only uppercase hex digits, which is contrary to what the spec text says.

from toml-test.

arp242 avatar arp242 commented on August 19, 2024

It's confusing: text in ABNF is case-insensitive, so "A" can also mean "a". In practice though, sometimes (perhaps even often?) it is interpreted as case-sensitive, so it can be a bit murky in practice. In this case, the accompanying TOML specification text explicitly mentions hex can be lower or upper case so that removes any doubt.

For the integer prefixes it uses codepoints instead of just "b", so that is case sensitive: this only applies to strings not codepoints.

from toml-test.

dmbaturin avatar dmbaturin commented on August 19, 2024

Yeah, it may be one of the (IMHO, completely obnoxious) matter of taste decisions encoded in the standard. There's likewise no technical reason to disallow newlines inside inline tables, or allow trailing commas in arrays but disallows them in inline tables.

from toml-test.

arp242 avatar arp242 commented on August 19, 2024

toml-lang/toml#833

from toml-test.

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.