carbon-lang
carbon-lang copied to clipboard
Syntax for implementing a single-function interfaces
trafficstars
Summary of issue:
Many of the operator overload interfaces have a single function, and other interfaces are expected to commonly as well. The current impl definition syntax is perhaps cumbersome for this case. Perhaps we should have a convenient shortcut?
In order to allow evolution of interfaces, this should apply any time the interface has one required function. If this convenient syntax is used, it should ignore functions with a default or final definition in the interface.