Hi rustaceans! What are you working on this week? Did you discover something new, you want to share?

  • webbureaucrat
    link
    fedilink
    arrow-up
    7
    ·
    3 months ago

    I’m working on a fault-tolerant JSON5 parsing library in the service of a JSON5-to-JSON and JSON5-to-YAML transpiler.

    My goal is to never write any more YAML ever again.

      • webbureaucrat
        link
        fedilink
        English
        arrow-up
        4
        ·
        3 months ago

        I am a YAML hater. The biggest thing about YAML that keeps biting me recently is this:

        script:
            - echo "a key: a value"
        

        throws parse errors because of the colon, even though it is inside a quoted string.

        But there are lots of reasons to hate YAML.

        Honestly, an underrated one to me is I just hate significant whitespace. I don’t want to use any language that supports it.