Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Context cancellation propagates (potentially) asynchronously anyway, so if you're relying on something canceling your context and that immediately appearing you already have a bug.

I've written `select { ..., default: }` enough times I also wish it had shorthand syntax - sometimes it's even clearer to range one "primary" channel and lead the code block with that check - but I cannot think of a case where relying on a deterministic select would not have led to a bug.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: