3 ms·
They're used all over the place where they're available. More languages are incorporating them exactly because of how useful they are. I expect much like gener
by EnergyAmy 3y ago
They're used all over the place where they're available. More languages are incorporating them exactly because of how useful they are.
I expect much like generics, we'll get some new version of Go eventually that half-asses ADTs, with much fanfare celebrating how they were totally always going to do it, they just needed to perfect it.
- usrbinbash 3y ago> More languages are incorporating them exactly because of how useful they are No, more languages are incorporating them, because most languages operate under the assumption that "more-is-better" is a good design maxime, also known as the "everything-and-the-kitchen-sink" method. Resulting in exactly the opposite of what Go is, with extreme success, doing. Fun fact: That methodology in other langages is what made Go's success possible in the first place. > I expect much like generics, we'll get some new version of Go eventually I expect the exact opposite, precisely because of generics. Because it has been some time now since they were implemented, and lo and behold: They are rarely used in most codebases, because as it turns out, the people saying "Outside of some collection-types, generics are almost never required" were right in the first place.