Re:New in Go 1.20: wrapping multiple errors
by fsociety on Sunday December 11, 2022 @11:13AM
(#33944415)
That’s cool. I constantly get tripped up with day/month ordering. Maybe I am dumb, but it is a silly design to defend in my opinion.
Re:New in Go 1.20: wrapping multiple errors
by divan on Sunday December 11, 2022 @03:59PM
(#33947432)
Can you elaborate in details how exactly you tripped by this?
Like, when you need to present current date so it looks like "11 December, 2022" - where your issue starts with Go's approach? Can you walk me through your thought process here? I'm genuinly curious.
Re:New in Go 1.20: wrapping multiple errors
by fcarraldo on Sunday December 11, 2022 @11:55AM
(#33944871)
> Order of day-month in mnemonic ("Jan 2nd" vs "Feb 1st") is literally not a problem
I mean, you literally got it wrong in this comment, so maybe it’s worth considering whether such a simple mistake might be hard to catch and thus cause real production issues?
What reality? I write Go almost daily for 9 years and was running Golang meetups in two countries for years. I think I have pretty good grasp of what actual problem real people have with dates in Go. Order of day-month in mnemonic ("Jan 2nd" vs "Feb 1st") is literally not a problem. This problem exists only in HN comments of people used to other approaches.