<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/go-iterators-are-bad-uwxhrdxas" -->

---
title: Go Iterators Are Bad | daily.dev
description: The post discusses the controversy surrounding the Go 1.23 iterators. While some, like the author, are excited about the new feature, others criticize it for...
canonical: https://daily.dev/posts/go-iterators-are-bad-uwxhrdxas
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Go Iterators Are Bad | daily.dev
og:description: The post discusses the controversy surrounding the Go 1.23 iterators. While some, like the author, are excited about the new feature, others criticize it for...
og:url: https://daily.dev/posts/go-iterators-are-bad-uwxhrdxas
og:image: https://api.daily.dev/og/posts/uWxhRDxAS.png
og:image:alt: Go Iterators Are Bad
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Go Iterators Are Bad

**[ThePrimeTime](https://daily.dev/sources/primeagen)** · 36 min read · 11 upvotes · 0 comments

## Summary

The post discusses the controversy surrounding the Go 1.23 iterators. While some, like the author, are excited about the new feature, others criticize it for making Go feel more functional rather than sticking to its imperative roots. There are concerns about its complexity, potential performance issues due to closures and callbacks, and a preference for simpler iterator implementations like those in Rust. The post also touches on the general philosophy of Go and how this change might diverge from its simplicity and ease-of-use ethos.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=CCxjt-dOL0U>

---

Tags: [#general-programming](https://daily.dev/tags/general-programming), [#golang](https://daily.dev/tags/golang)

[View this post on daily.dev](https://daily.dev/posts/go-iterators-are-bad-uwxhrdxas)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Go Iterators Are Bad","url":"https://daily.dev/posts/go-iterators-are-bad-uwxhrdxas","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/go-iterators-are-bad-uwxhrdxas"},"datePublished":"2024-06-21T12:20:01.651Z","dateModified":"2024-08-23T15:35:11.151Z","description":"The post discusses the controversy surrounding the Go 1.23 iterators. While some, like the author, are excited about the new feature, others criticize it for...","image":"https://i.ytimg.com/vi/CCxjt-dOL0U/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/CCxjt-dOL0U/sddefault.jpg","isAccessibleForFree":true,"articleSection":"ThePrimeTime","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"ThePrimeTime","logo":"https://media.daily.dev/image/upload/s--J5-GjDeo--/f_auto/v1704628081/logos/primeagen.jpg","url":"https://daily.dev/sources/primeagen"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/go-iterators-are-bad-uwxhrdxas","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":11},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"general-programming,golang","timeRequired":"PT36M","video":{"@type":"VideoObject","name":"Go Iterators Are Bad","description":"The post discusses the controversy surrounding the Go 1.23 iterators. While some, like the author, are excited about the new feature, others criticize it for...","thumbnailUrl":"https://i.ytimg.com/vi/CCxjt-dOL0U/sddefault.jpg","uploadDate":"2024-06-21T12:20:01.651Z","duration":"PT36M","url":"https://api.daily.dev/r/uWxhRDxAS","embedUrl":"https://www.youtube.com/embed/CCxjt-dOL0U"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"ThePrimeTime","item":"https://daily.dev/sources/primeagen"},{"@type":"ListItem","position":3,"name":"Go Iterators Are Bad"}]}
```

