News for hackers. Stuff that matters.
Re:Crimes with Go Generics by nx7487 on Monday April 25, 2022 @01:42AM (#31151044)

    Go 1.18 added generics to the language. This allows you to have your types take types as parameters so that you can create composite types (types out of types). This lets you get a lot of expressivity and clarity about how you use Go.
Aren't structs already composite types?
Re:Crimes with Go Generics by brundolf on Monday April 25, 2022 @02:50AM (#31151323)
I assume the difference is that without generics you can't freely re-compose a struct type again with different, other types. You have to make a whole new struct type from scratch
Re:Crimes with Go Generics by cttet on Monday April 25, 2022 @04:40AM (#31151919)
The core difference is that structs are static. Once a struct is defined the type are fixed. "composite types" here refers to type that can be dynamically changed when you annotate them. i.e. if you have an custom array type, you can compose them on the fly with MyArray[int] or MyArray[MyCat], structs can't do that.
Re:Crimes with Go Generics by Koiwai on Monday April 25, 2022 @02:12AM (#31151168)
I guess the author meant "types of types".
Re:Crimes with Go Generics by honkycat on Monday April 25, 2022 @02:15AM (#31151188)
She? They?

the website is called christine.website so it is probably not a man

Re:Crimes with Go Generics by xena on Monday April 25, 2022 @05:06AM (#31152082)
I'd prefer http://pronoun.is/xe/xer/xer/xers/xerself but they/them works too
Re:Crimes with Go Generics by honkycat on Wednesday April 27, 2022 @12:43PM (#31182342)
i see! my apologies, i did look, and I made it as far as your twitter and still didn't parse that.

Please forgive my ignorance! :)

[dead]
[dead]
Re:Crimes with Go Generics by Koiwai on Tuesday April 26, 2022 @01:43AM (#31164337)
I don't normally care about the author's gender, but I'd argue assuming that is a man is a honest mistake, as long as women in the tech industry is still a minority. Do you really need to go that far? I think that shows how fragile you're.
Re:Crimes with Go Generics by honkycat on Wednesday April 27, 2022 @12:52PM (#31182481)
when i make a mistake, i apologize and correct it.

Especially one as minor as misgendering, which inevitably happens and is easily fixed with a quick: "oh, they*! My apologies!"

so your assertion "i don't care" comes off as flippant and aggressive.