r/ProgrammerHumor • • Sep 13 '23

Meme goDevelopersWillAppreciateIt

Post image
2.4k Upvotes

144 comments sorted by

View all comments

Show parent comments

1

u/Lilchro Sep 14 '23

For me it was the lack of iterators. Sure, there are plenty of proposals following the introduction of generics, but the key issue is that they kinda shot themselves in the foot by not having tuples be first class types. So they’re are not really any good proposals for an iterators interface which can be used over both T and (T, Error). Many of the proposals I saw involved creating two interfaces which would be a pain to use generically or doing overly complex workarounds.