From 4be9b83eb6006d8fbda438f1508315fe48f21fc7 Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Fri, 7 Sep 2012 14:01:02 -0700 Subject: [PATCH] faq: go does not have duck typing R=golang-dev, 0xjnml, iant, adonovan, aram CC=golang-dev https://golang.org/cl/6500092 --- doc/go_faq.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/go_faq.html b/doc/go_faq.html index 64acd96a2dc..b7fdb7b568a 100644 --- a/doc/go_faq.html +++ b/doc/go_faq.html @@ -541,7 +541,7 @@ Why doesn't Go have "implements" declarations?

A Go type satisfies an interface by implementing the methods of that interface, nothing more. This property allows interfaces to be defined and used without -having to modify existing code. It enables a kind of "duck typing" that +having to modify existing code. It enables a kind of structural typing that promotes separation of concerns and improves code re-use, and makes it easier to build on patterns that emerge as the code develops. The semantics of interfaces is one of the main reasons for Go's nimble,