Hacker News new | ask | show | jobs
by jpk 1041 days ago
Big Scala vibes here, see also [1].

1: https://github.com/scala/scala/blob/v2.13.11/src/library/sca...

1 comments

That looks pretty straightforward actually.
Ultimately 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.)
From 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