News for hackers. Stuff that matters.
Re:Go Is a Well-Designed Language by xarope on Friday January 31, 2025 @03:23AM (#42885676)
I got caught with maps initially, and had to question why everything else was just "var x string", which also gives it a value, but maps needed a "var x = make(make[string]string)", otherwise on first assignment it panics.

There's a good explanation somewhere, ah here it is: https://go.dev/blog/maps

But you get used to it, and move on, especially with the sort of TDD workflow that go test encourages

Re:Go Is a Well-Designed Language by usrnm on Friday January 31, 2025 @04:08AM (#42885948)
I know why it works the way it works, it doesn't make it a good design, which is the point of this discussion