Re:Faster Sorting with Go Generics
by mjburgess on Sunday April 03, 2022 @02:50AM
(#30894996)
I'm not sure I see the reckless generalisation. I said `+` meant append, not add. We can use addition in the case of integers to serve as `append`, but its a special case of appending where A+B == B+A.
In python, where I take the example, `+` performs that role,
[a() + a() for a in (str, bool, int, list, tuple)]
In python, where I take the example, `+` performs that role,
etc.