geode
geode copied to clipboard
Protocols
Much like go's interfaces, but would act much like generics + limitations
Possible Syntax:
protocol Addable {
Add(Addable other) Addable
}
Classes would automatically implement a protocol if they have the methods required.
Example usage would be for string()
protocol Stringable {
string() string
}