News for hackers. Stuff that matters.
Re:Go is still not good by candiddevmike on Friday August 22, 2025 @08:24AM (#44983656)
The way Go parses time strings by default is insane though, even the maintainers regret it. It's a textbook example of being too clever.
Re:Go is still not good by nkozyra on Friday August 22, 2025 @10:57AM (#44985420)
By choosing default values instead of templatized values?

Other than having to periodically remember what 0-padded milliseconds are or whatever this isn't a huge deal.

Re:Go is still not good by mdaniel on Friday August 22, 2025 @11:34AM (#44985857)
I'm not OP, but I also got tripped up the first time I saw time.Parse("2006-01-02 03:04:05") and was like what the actual?!

https://pkg.go.dev/time#Layout

Re:Go is still not good by peterashford on Sunday August 24, 2025 @05:40AM (#45002829)
Yeah, that's ugly as fuck. I hate it