News for hackers. Stuff that matters.
Re:JSON5 – JSON for Humans by efitz on Sunday December 08, 2024 @11:57PM (#42363179)
I have never encountered an adult human being who would not be able to “parse” this mentally and come up with the correct value. If I did, I wouldn’t associate with them voluntarily as they would likely be an asshole, spending all their time bikeshedding and making everyone else miserable due to their inability to cope with someone not following their unwritten “rules”.
Re:JSON5 – JSON for Humans by The_Colonel on Monday December 09, 2024 @12:18AM (#42363243)
What an extreme reaction. Many people would not be able to parse it since they've never seen a number written in this way, but you immediately write them off as assholes. Wow.
Re:JSON5 – JSON for Humans by efitz on Monday December 09, 2024 @08:04AM (#42365927)
It will look funny to many people but they will be able to interpret it. Remember that this thread is in the context of whether to be strict or relaxed in a specific file syntax for files intended to be authored by humans.
Re:JSON5 – JSON for Humans by The_Colonel on Monday December 09, 2024 @08:41AM (#42366198)
> It will look funny to many people but they will be able to interpret it.

You're still approaching this with the background knowledge of what this is. If you've never seen this, you can only guess, and there are a couple of options.

I've been terminally online for the better part of the last 2 decades, yet I've seen this way of writing for the first time only ~5 year ago or so, and I still remember simply not knowing what it is. The first reaction is that it's simply a typo - the author mistyped - the dot should have been a digit or perhaps not be there at all.

Re:JSON5 – JSON for Humans by szszrk on Monday December 09, 2024 @12:48AM (#42363348)
Stripping zero is not a common practice. You are clearly speaking of your own bubble here.

For most of the world that is even more ridiculous than using dot as decimal space separator or writing dates with month not in the middle place.

Even Americans I work with don't write it like that when doing quick draft discussion, as they know it's confusing to others.

Re:JSON5 – JSON for Humans by efitz on Monday December 09, 2024 @08:07AM (#42365952)
It’s not about whether people normally write it that way. In the overall context of the thread it’s whether they ever write it that way.
Re:JSON5 – JSON for Humans by szszrk on Monday December 09, 2024 @09:43AM (#42366631)
From my perspective no one does. Ever.

I only know it's a thing because I watched some math-related edu shows. Didn't even see that when I briefly worked in US.

Re:JSON5 – JSON for Humans by oneeyedpigeon on Monday December 09, 2024 @10:02AM (#42366817)
> even more ridiculous than ... writing dates with month not in the middle place

Come on, let's be fair—nothing else will ever be as ridiculous as that!

Re:JSON5 – JSON for Humans by szszrk on Monday December 09, 2024 @02:18PM (#42369472)
I could maybe throw into the contest:

- "a gallon". Not purely US thing but almost. It can be anything from 3.8 to 4.4 liters, depending mostly on what are you measuring.

- writing digits. Is it "1", is it "7", is it "i", is it "l"? Why do it to yourself, while their printed fonts are pretty much the same as everywhere else...

Re:JSON5 – JSON for Humans by layer8 on Monday December 09, 2024 @10:48AM (#42367300)
For people who grew up in countries where comma is the decimal separator (and dot the thousands grouping separator), this is highly unintuitive, because it would seem much more likely to be a misplaced punctuation mark.

It might be moderately intuitive to English native speakers because of oral usage like “point one three eight”, but that’s also not a thing in many other languages.