umka-lang icon indicating copy to clipboard operation
umka-lang copied to clipboard

Proposal: Anonymous struct embedding with method inheritance

Open vtereshkov opened this issue 1 year ago • 0 comments

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

vtereshkov avatar May 15 '24 17:05 vtereshkov