Re:New in Go 1.20: wrapping multiple errors
by foldr on Sunday December 11, 2022 @08:35AM
(#33943017)
Isn't this line of argument somewhat self-defeating? It sounds as if these language design decisions that cause a vocal minority to complain loudly have only a marginal impact on actual productivity (or at least the perception of it). If so, that would be quite a good justification for not complicating the language by, e.g., adding enums, a non-nil pointer type, etc. etc.
[ Parent
| on HN ]
Re:New in Go 1.20: wrapping multiple errors
by bstpierre on Sunday December 11, 2022 @08:46AM
(#33943124)
I think that what you’re talking about might even be the killer feature that is often ignored: the forced simplicity. It’s a simple enough language that you can drop into a codebase and read without having to look up much syntax, assuming you have some familiarity with c-family languages. Yes, there are some weird bits that you have to learn, but the learning curve is very short compared to a lot of other languages.
Re:New in Go 1.20: wrapping multiple errors
by p-e-w on Sunday December 11, 2022 @09:07AM
(#33943289)
Indeed, Go is reduced to the bare essentials!
That's why it has primitive types representing complex numbers, which maybe 1 in 10,000 projects will use.
It doesn't have enums though, because who needs those?
Re:New in Go 1.20: wrapping multiple errors
by foldr on Sunday December 11, 2022 @09:20AM
(#33943413)
No need to be so salty. No-one is claiming that Go is an ultraminimalist language, just that it's relatively simple compared to most of the alternatives.
Re:New in Go 1.20: wrapping multiple errors
by matwood on Sunday December 11, 2022 @09:13AM
(#33943347)
> the forced simplicity
I appreciate this about Go. I'm not a programming language wonk, and Go's forced simplicity makes it easier to read other people's code.
Re:New in Go 1.20: wrapping multiple errors
by kaba0 on Sunday December 11, 2022 @04:14PM
(#33947594)
Ad absurdum that would mean that programming in assembly is the most readable.
Abstraction is the only reason we can write any complex program.
Re:New in Go 1.20: wrapping multiple errors
by erik_seaberg on Monday December 12, 2022 @01:39AM
(#33951652)
The bigger the toolbox is, the more becoming an expert pays off. I would much rather fully learn a language I’m using as a working professional, than have to review many home-grown solutions to a common problem the language ignored.