News for hackers. Stuff that matters.
Re:Go 1.18 by MrDOS on Wednesday March 16, 2022 @06:56PM (#30705208)
> 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.

There are no comments on this comment yet.