Re: YAML simplification

Peter Murphy <[email protected]> Mon, 5 Mar 2018 07:31:30 +1000
Newsgroups gmane.text.yaml.general
Message-ID <CANZ_uBhTOBfxbNOUBtTCC5oWgobjzrwk5p3dhx22=C6iP9BjHw@mail.gmail.com>
Andrey (and all):

While I don't have any objection to dropping 3 to 6, I object to
dropping 1 and 2.

1: JSON has one numerical type, because JavaScript doesn't support any
distinction between floats and integers. Other languages support this
distinction. I think preserving implicit types for floats and integers
(and datetimes as well) is useful.
2: Some languages like Python allow tuples and immutable sets as keys
for mappings. One of the strengths of YAML is that it doesn't put
limitations on what data it can handle. Let's keep this strength.

Best regards,
Peter


On Sun, Mar 4, 2018 at 10:33 PM, Andrey Somov <[email protected]> wrote:
> Hi all,
> I see 2 major directions for YAML evolution:
>
> 1. radical simplification
> 2. more features
>
> The advantages of the first:
> a) easy adoption
> b) rock solid spec - because there is nothing to change like in JSON
> c) no need to mention version (1.1, 1.2. 1.3, 2.0 etc)
> d) we can drop %YAML directive because all the versions are supposed to be
> the same
>
> I do not claim that simplification does not have disadvantages but does make
> YAML more user friendly.
>
> (who complains that boolean has 2 values instead of 18 ? )
>
> I would like to vote to the features which can and should be dropped:
>
> 1. all the implicit types except the ones from JSON (users should be able to
> define custom implicit types) Recommended Schema_s_ should become Schem_a_
> 2. Complex keys (let us allow JavaScript to implement the spec). No need to
> discuss the 1024 limit
> 3. Folded scalar
> 4. Chomping indicators
> 5. Indentation indicators (who is using it and why?)
> 6. Directives
>
>
> Feel free to add your vision here.
>
> Cheers,
> Andrey
> SnakeYAML developer
>
> P.S. I fully support proposals (https://github.com/yaml/yaml-spec/wiki)
> which make YAML  stricter.
>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Yaml-core mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/yaml-core
>



-- 
Email: [email protected]
WWW: http://www.pkmurphy.com.au/

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot