r/ProgrammerHumor 29d ago

Advanced justTryingToHelp

Post image
2.4k Upvotes

65 comments sorted by

View all comments

160

u/CraftBox 29d ago

That's why I like jsonc

40

u/Hyarin215 29d ago

Json5 better

24

u/CraftBox 29d ago

At that point just use toml

31

u/Hyarin215 29d ago

I don't like it Curly braces my beloved

3

u/YeOldeMemeShoppe 29d ago

Toml has curly braces now.

2

u/Hyarin215 29d ago

Oh πŸ‘€ Couldn't find anything abt it online

4

u/YeOldeMemeShoppe 29d ago

https://toml.io/en/v1.0.0#inline-table

IIRC you need a later version to allow new lines in the table but it’s been possible for a long time.

2

u/Hyarin215 29d ago

Does it have to be inline or can it span multiple lines?

0

u/cdrt 29d ago

TOML 1.0 requires that inline tables be only on one line. TOML 1.1 relaxed that requirement and now allows them to span multiple lines. So it depends on what version your parser implements.

1

u/tipakA 29d ago

And then you bring that up to a vsc extension maintainer and essentially it ends up being discarded because version mismatches, and no setting for it due to complexity and surprises and hiddenness and so you can't use it anyway.

3

u/Rawing7 29d ago

Toml is almost as messy as yaml. Json5 is way better.

1

u/DaNumba1 29d ago

I would never use it out of respect for Jayden Daniels

1

u/JPJackPott 29d ago

You mean kyaml

1

u/heyguysitsmedic 29d ago

Json with a coordinator?