logoalt Hacker News

silverwindyesterday at 7:54 PM4 repliesview on HN

It's sad that such basic stuff took this long. If we're lucky we might even see a `Map` function in our lifetimes.


Replies

PrimalPoweryesterday at 8:28 PM

The beauty of go is YAGNI. Language design makes it much harder for people so do stupid and cute things.

During my design process if I start realizing that I’m missing maps, More expressive Types, Or more complex polymorphism. I ask myself if I really need those things.

If I really do. I move off of go.

That’s the beauty of the language. Go does not need more complicated language features because it’s can handle the majority of trivial software work without unnecessary complexity.

The language does not need to solve complicated problems.

show 1 reply
inigyouyesterday at 11:18 PM

Go's whole philosophy was to keep the language simple. It's a shame they're abandoning that now and becoming the next C++/Zig/Rust/Java

bborudyesterday at 10:53 PM

This is also why people eventually leave languages. Satisfy everyone’s wishes for long enough and you get lots of different styles of doing things and … «wow look at that much simpler language over there; let’s try that instead»

wannabe44yesterday at 8:12 PM

Map function leads to poor code in Go. Function literals are verbose and inlining is far less agressive. It simply isn't the way of the language. Even python shuns map and filter in favor of comprehensions. A for loop is more readable than the lambda soup.

show 2 replies