3 ms·
> scanner.Scan, strings.Split, regex.FindAll or sql.Query should return iterators Will never happen. Best you can hope for is new functions
by 38 2y ago
> scanner.Scan, strings.Split, regex.FindAll or sql.Query should return iterators
Will never happen. Best you can hope for is new functions
- skldj28d2 2y agoI know. There are already proposals to add new functions to many of these packages that return iterators.
- 38 2y agono there arent
- skldj28d2 2y agohttps://github.com/golang/go/issues/61901 https://github.com/golang/go/issues/61901 https://github.com/golang/go/issues/61902 https://github.com/golang/go/issues/61902 https://github.com/golang/go/issues/61900 https://github.com/golang/go/issues/61900 https://github.com/golang/go/issues/61899 https://github.com/golang/go/issues/61899 https://github.com/golang/go/issues/61898 https://github.com/golang/go/issues/61898 Yes there are and a lot of the work is already done.
- 38 2y agothanks :) https://wikipedia.org/wiki/Ward_Cunningham#%22Cunningham's_Law%22 https://wikipedia.org/wiki/Ward_Cunningham#%22Cunningham's_L...