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

I suppose "choose" was used for multiplexing channel reads to avoid clashing with select(2) (<sys/select.h>) on BSD/POSIX systems..?


Yep. Same way "case" and "default" cannot be used because they clash with C keywords. I was thinking of using "elect" initially, but that looks too much like a typo.




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

Search: