3 ms·
Big Scala vibes here, see also [1]. 1: https://github.com/scala/scala/blob/v2.13.11/src/library/scala/Function22.scala#L21 https://github.com/scala/scala/blob/
by jpk 3y ago
Big Scala vibes here, see also [1].
1: https://github.com/scala/scala/blob/v2.13.11/src/library/scala/Function22.scala#L21 https://github.com/scala/scala/blob/v2.13.11/src/library/sca...
- eweise 3y agoThat looks pretty straightforward actually.
- jpk 3y agoUltimately it is, but I guess my point is that having goofy signatures like these down in the bowels of a library (like FP-Go, or Scala's stdlib) might just be necessary goofiness because FP is FP. (Not to knock FP. Engineering is about tradeoffs.)
- eweise 3y agoFrom the Go standard library "func CompareFunc[S1 ~[]E1, S2 ~[]E2, E1, E2 any](s1 S1, s2 S2, cmp func(E1, E2) int) int { " Looks like Scala