4 ms·
Generics don't solve immutability.
by NateDad 9y ago
Generics don't solve immutability.
- JamesMcMinn 9y agoNo, Generics make it possible to create a generic immutable data structure which can be used instead of re-writing the same boilerplate for every data type, which is the authors complaint.
- xfer 9y agoYou are still talking about immutable data structures, which has nothing to do with generics.
- JamesMcMinn 9y agoNo, YOU are still talking about immutable data structures, where as I am talking about the need to write boilerplate code in Go due to lack of Generics. The blog posts topic was not "immutable data structures", rather the need for boilerplate code in Go because of the lack of generics. The particular example was one of immutable data structures, however that was an example rather than the topic. The author themselves notes that "generics would solve all of the issues above".
- xfer 9y agoThe comment i replied to : > No, Generics make it possible to create a generic immutable data structure I am sure i can read.
- andrewjw 9y agoThat was a reply to "Generics don't solve immutability" which was a reply to a post that did not contain the word "immutable" but does contain the word "generic" James' comment you quote was responding to your comment, which he parsed generically as "Generics don't solve T", with a comment of the form, "Generics make it possible to implement a generic T." I'm confident you can read, but I'm not so sure about your reading comprehension and critical thinking.
- xfer 9y agoI'm confident that you have no clue what you are talking about.