Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
zer8k
on Aug 12, 2023
|
parent
|
context
|
favorite
| on:
Iterators in Go: A proposed extension
`Gonerator` is the pattern for side-effect only deleting a list. Just implement gonerator and your lovely list will delete itself.
for k := i.getNext() { yeet k }
I'm willing to negotiate on `yeet` but its close enough to `yield` it feels natural.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: