News for hackers. Stuff that matters.
Re:New in Go 1.20: wrapping multiple errors by divan on Sunday December 11, 2022 @09:02AM (#33943240)
But why? It's so handy in practice!

I work a lot with times (not just dates) and having strings like "15:04" make it immediately recognizible, consise and just right.

What I actually lack in Go's time is ability to work with time only without timezone (like, event starts at "12:00", regardless of timezone). But here is the thing - Go is a programming language, and not "framework with solutions for every use case" as many others. So I just spent 10 minutes and wrote my own type for that and use it happily along with time.Time.

Re:New in Go 1.20: wrapping multiple errors by masklinn on Sunday December 11, 2022 @09:15AM (#33943372)
> But here is the thing - Go is a programming language, and not "framework with solutions for every use case" as many others.

So... why did they provide a terrible time formatting routine in the first place if it's not a solution to use cases?

Re:New in Go 1.20: wrapping multiple errors by foldr on Sunday December 11, 2022 @09:32AM (#33943529)
OP was talking about an issue unrelated to time formatting in the part you quote (the lack of a timezoneless time type).
Re:New in Go 1.20: wrapping multiple errors by divan on Sunday December 11, 2022 @09:33AM (#33943542)
Because they're not that smart as HN commenters, obviously. Be compassionate.