You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Potential issues:
What happens if the type already implements the interface but hasn't been declared that way?
For example:
Printable: interface {
toString: func->Stringprint: func {
toString() println()
}
}
extend Int asPrintable {
// 'toString: func -> String' already exists in the original Int declaration// Should it be automatically detected?// Obviously, you cannot re-declare it.
}
Edit: In my opinion, interface required functions not implemented in the addon should be looked up in the type declarations and used automatically.
Proposed syntax:
@fasterthanlime
Thoughts?
The text was updated successfully, but these errors were encountered: