|
|
|
|
|
by Groxx
1045 days ago
|
|
Func references can have methods as well fwiw :) They just need to have a named type. But sure, if you want to build a multi-method thing (or upcast to detect optional methods), an interface is the natural choice - it's no longer a single func. |
|
Likewise, (ThingDoerImplemetation{}).DoThing is a valid func reference
Hence I say there's not really a one size fits all, there are a options for different circumstances.