umka-lang
umka-lang copied to clipboard
Proposal: Anonymous struct embedding with method inheritance
This feature will enable, among other things, having default method implementations, so that a user will no longer need to define a lot of (possibly empty) methods to make his/her struct satisfy an interface.
A Go example: https://go.dev/play/p/ByoUzfqOpn