Re:Go-internals: Chapter 2, “Interfaces” released
by leaveyou on Monday April 09, 2018 @04:57PM
(#16796934)
>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 ?
Re:Go-internals: Chapter 2, “Interfaces” released
by girvo on Tuesday April 10, 2018 @10:06AM
(#16801445)
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
Is there a language that works the way you describe ?