3 ms·
That JSON prohibits trailing commata makes it an absolute pain to work with in practice. I also like how in Haskell: something = { element , elem
by Blikkentrekker 4mo ago
That JSON prohibits trailing commata makes it an absolute pain to work with in practice.
I also like how in Haskell:
something =
{ element
, element1
, element2
, element3
}
Is an actually idiomatic way to deal with the lack of trailing commata.
- kazinator 4mo agoI did something like that in C++ circa 1998, before seeing it anywhere else: MyClass::MyClass(foo bar, int arg1, int arg2) : Base(bar) , member1(arg1) , member2(arg2) { }
- Ferret7446 4mo agoNot really? A linter/formatter takes care of it.
- shawn_w 4mo agoYou see that style in SQL too.
- chirsz 4mo agoWelcome to https://jsonc.org https://jsonc.org
- NuclearPM 4mo agoCommata?