Re: [go-nuts] Re: Disadvantage of Go

2017-01-14 Thread Christoph Berger
> None of these alternatives really solve any real problem generics would solve. True, and the article does not mean to imply this. But often it would seem that there is no alternative to using generics for solving a given problem although there is one if you look close enough. Of course this de

Re: [go-nuts] Re: Disadvantage of Go

2017-01-13 Thread 'Axel Wagner' via golang-nuts
If your struct need special initialization, provide a factory function (search for New* or Make* for examples) and don't export the special fields. If not, the zero value is obviously fine. Recursive application of this simple and widely used rule negates the problem you seem to be having; F appar