Re:Why Go is elegant and makes my code elegant
by rakoo on Thursday April 10, 2014 @05:11AM
(#7564946)
You're still leaning too much in types. Go is a very lightweight type system. The setter and base type basically scream for "I want to use my Java in Go". I'm not even talking about using a factory.
Here's I would do it:
http://play.golang.org/p/EmxCRkDNLC