last time i tried using funcs a lot it turned out that it's not possible to typedef a function signature and use it to pass funcs as arguments which is very unfortunate. is this by design or is it getting fixed?
print("hello", func(msg string) { ... })
when signature is much larger it becomes very annoying. something like print("hello", Printer(msg) { ... })
would be perfect, but something something golang generics something? print("hello", myprinter)
https://play.golang.org/p/3sNOeVIhqiAre there any manifestly-typed languages that work that way, though? I'm having trouble thinking of one, though given the number out there I won't be surprised if there is.