-
Notifications
You must be signed in to change notification settings - Fork 9
Builtin interfaces for some language features #12
Open
Description
Now that the iterator interface has been mentioned in #10 (comment) i think it'd be nice to expand that context and make available some language features via interfaces.
For example, equatable:
type equatable[T] interface { Equals[T](T) bool }
That would enable this:
if myCustomType == myCustomType2 { // stuff }
Activity
Metadata
Metadata
Assignees
Labels
No labels