News for hackers. Stuff that matters.
Re:Go is not an easy language by Gibbon1 on Monday February 22, 2021 @03:59AM (#26222286)
Seems to me there are a lot of different types of collections which all have a delete operation. Feels like go forcing you to hand roll a delete forces you to violate the principal that a bit of code should care as little as possible about things it's not about.

If code breaks because list is now a hashmap, that seems like an anti-feature.

Re:Go is not an easy language by hmage on Monday February 22, 2021 @09:28AM (#26224910)
> the principal that a bit of code should care as little as possible about things it's not about

Can you find/quote where that principle comes from? I'm genuinely curious.

Re:Go is not an easy language by kaba0 on Monday February 22, 2021 @03:47PM (#26230365)
I think it is mostly based on OOP paradigm, like principle of least knowledge.
Re:Go is not an easy language by Gibbon1 on Monday February 22, 2021 @05:45PM (#26231690)
It's a motivation for things like OOP, Generics, and macro's.