News for hackers. Stuff that matters.
Re:Golang generics proposal has been accepted by sdfsfsf3kjdf on Wednesday February 10, 2021 @04:18PM (#26094949)
In Rust you can solve this via derive or a macro. Typescript's conditional types and the associated utility types are a nice solution to this problem as well. You can do a ton with Partial, Required, Pick, Omit, Exclude etc.
Re:Golang generics proposal has been accepted by pjungwir on Thursday February 11, 2021 @12:42PM (#26104655)
Thank you both for these tips. I'll see what I can figure out! :-)