Hacker News new | ask | show | jobs
by Someone 5362 days ago
I have only skimmed the page, but this caught my eye:

    Close is intended as a way for a sender to signal
    that no more values will be sent.  

    Go 1 will disallow close on receive-only channels.
Why, then, would one still call this 'close'? Wouldn't "done", "dontexpectmore" or "sendEndOfData" be better names?
1 comments

Yesterday in #go-nuts we were discussing better names for close() which currently causes so much confusion, my suggestion was end(), but done() is a good one too.