Profile cover photo
Profile photo
Peter Verhas
211 followers -
me, myself and I
me, myself and I

211 followers
About
Communities and Collections
Posts

Post has attachment
Peter Verhas commented on a post on Blogger.
In addition to all that your Person struct is not a Stringer. 'String()' should work on a Person and not on a pointer to a Person. This small glitch however does not change much, your article is generally well.

On second though though I am afraid that you miss one point. One point that you mention and even so you may not fully got the point.

The major problem in this case does not only come from the lack of generics. Even if there were generics implemented in the language go it would not help the gap between the array of a value type and the array of pointers. Java does not have this problem, because it does not have value types. (Which is essentially not the solution, rather only the avoidance of the problem.)

How would you overcome this issue, as you mentioned in your article, using reflection no matter how slow that would be? I am getting familiar with go only for a week but I suspect it can not be done that way either.
Add a comment...

Post has attachment
Add a comment...

Post has attachment
Add a comment...

Post has attachment
Add a comment...

Post has attachment

Post has attachment

Post has attachment
kutyám
Photo
Add a comment...
Wait while more posts are being loaded