News for hackers. Stuff that matters.
Re:Too Much Go Misdirection by throwaway894345 on Monday May 19, 2025 @05:24PM (#44035038)
Nah, a good API doesn’t push the conditionals down. You don’t need to pass a union to let the user decide, you just need to present an API for each (including a generic implementation that monomorphizes into multiple concrete implementations) https://matklad.github.io/2023/11/15/push-ifs-up-and-fors-do...

There are no comments on this comment yet.