this post was submitted on 29 Sep 2024
24 points (96.2% liked)

Rust

6024 readers
1 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

[email protected]

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 1 year ago
MODERATORS
 

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

you are viewing a single comment's thread
view the rest of the comments
[โ€“] webbureaucrat 7 points 1 month ago (2 children)

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.

[โ€“] secana 6 points 1 month ago

An honorable goal ๐Ÿ˜€

[โ€“] [email protected] 1 points 1 month ago (1 children)

What did YAML ever do to you?

[โ€“] webbureaucrat 4 points 1 month 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.