3 ms·
I think the Go compiler handles switches a little more like a series of "if else" (In fact I think a few languages do that) but Go supports first class function
by laumars 14y ago
I think the Go compiler handles switches a little more like a series of "if else" (In fact I think a few languages do that) but Go supports first class functions, you can map things somewhat differently using that.
Ken Thompson does go into more detail in a link off the SO question I posted earlier.
[edit: i see you've already spotted that link. Sorry about that]