Am 17.03.2014 17:16, schrieb Bienlein:
On Thursday, 6 March 2014 at 17:17:12 UTC, Atila Neves wrote:
There is a thread now on the Go user forum about GoF design patterns in
Go:
https://groups.google.com/forum/?hl=de#!topic/golang-nuts/3fOIZ1VLn1o
Reading the comments by Robert Pike (the Go lead developer) is
insightful. Here is one of them:
"A concrete example: The Visitor Pattern.
This is a clever, subtle pattern that uses subtype inheritance to
implement a type switch.
Go has type switches, and therefore no need for the Visitor Pattern."
With type switches he means a case switch on types, see
http://golang.org/doc/effective_go.html#type_switch
In other words, Go and OOP: Abandon all Hope! From my side the "Go vs D
MQTT thing" is closed. Go will never develop into any thing than C in a
modern disguise.
Maybe I now hi-jacked the thread another time. Sorry, but couldn't
resist. At least I did resist to post a reply in that thread on the Go
user forum. I think it would be plain useless ...
That is no wonder.
If you search the web for references, you will find that Rob Pike very
much dislikes OOP.
When I jumped into Go as of the language's announcement, was due to the
language influence of Oberon.
However with time, I came to realize my time is better spent with other
language communities that enjoy modern features instead of a remake of
Limbo.
I still check gonuts, every now and then, though. Just don't bother
posting anything.
--
Paulo