News for hackers. Stuff that matters.
Re:The Next Step for Generics by jasonhansel on Tuesday June 16, 2020 @05:26PM (#23544395)
I can think of a few other potential use cases in Go. Some ideas:

- Promises

- Mutexes like Rust's Mutex<T> (would be much nicer than sync.Mutex)

- swap functions, like swap(pointer to T, pointer to T)

- combinators and other higher-order functions

There are no comments on this comment yet.