Hacker News new | ask | show | jobs
by leaveyou 2997 days ago
>It could have been done as a compile-time work-around which constructs the slice-of-interfaces argument on-the-fly before calling the function - it wouldn't have been the only magical thing in Go.

Is there a language that works the way you describe ?

1 comments

Not quite, but I believe Nim works similarly. But it also has generics, and it’s function dispatch resolution is neat, so it’s not quite apples-to-apples