Kind likes

 Like

Liked Ergonomic Map in Go
Post details
In many languages, on of the things I find myself doing is maping over a list to extract some field. For example, coverting a []Person to []Name. Most languages these days have ways to do this pretty easily: Kotlin: people.map { it.Name } JavaScript: people.map(p => p.Name) Rust: people.map(|p| p.Name) Scala: people.map(_.Name) With generics, Go finally can do this in a type safe manner: Map(people, func(t Person) string { return t.

 Like

Liked Elisabeth M (@independentpen@mas.to)
Post details
Alt text isn't just helpful for the sight-impaired. By reading alt text I can identify what the OP is calling attention to in the pic, helping me get the joke or social commentary that would otherwise be illegible to me. (Without this I'm like, I see a thousand details and I don't know which one matters to you.) #ActuallyAutistic