GithubHelp home page GithubHelp logo

Comments (6)

crdoconnor avatar crdoconnor commented on June 2, 2024

from strictyaml.

crdoconnor avatar crdoconnor commented on June 2, 2024

from strictyaml.

crdoconnor avatar crdoconnor commented on June 2, 2024

from strictyaml.

Racso avatar Racso commented on June 2, 2024

Sure. A schema fixes the issue.

But not having a schema is also valid. Shouldn't that case be protected by the strict ruling?

Another way of analyzing it: do you see any advantages of having case sensitivity over not having it? Do you see any use cases where the advantages overcome the risks?

from strictyaml.

shoogle avatar shoogle commented on June 2, 2024

Here's are two examples of where case-sensitivity is useful/essential:

1. Dictionary

dry: Free from liquid or moisture.
DRY: Acronym for "Don't Repeat Yourself".

2. Unix filesystem

etc:
  fstab: A special file that defines mountpoints for disk partitions.
  FSTAB: A regular file.

StrictYAML needs to be case-sensitive to support these use-cases.

If you have a particular use-case that requires case-insensitivity (e.g. files on an NTFS or APFS filesystem) then I think you should enforce that in the schema or at the application level rather than making it an inherent part of the StrictYAML standard.

from strictyaml.

Racso avatar Racso commented on June 2, 2024

Thanks. Those are solid examples.

Small clarification: please note that I'm not proposing to do anything to the standard. I just wanted to read thoughts about the topic in the context of StrictYAML.

from strictyaml.

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.