by chimeracoder · 13y ago · 0 comments
It's statically typed, so it can check at compile-time that the "messages" being passed are valid, but the dispatch of the messages (ie, methods) is determined by the struct itself, which has the same effect as "extreme late binding" (Kay's words) - the only difference is that Go's type system permits much of this to happen at compile-time anyway.
[1] Which, incidentally, explicitly mentions inheritance as not being a defining point of OO programming.
No comments yet.