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

> can't the backend (...) implement a jump table?

Note that my example “switches” over two independent variables. Even if the Go compiler did generate a table, for this example it would really be generating two tables: and then we're back to the “how is this better than an `if`?” question.



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

Search: