Hacker News new | ask | show | jobs
by wyldfire 2837 days ago
Another approach not mentioned: LLVM's StringSwitch [1]. Unfortunately it's not designed to be used independent of LLVM, so it has a dependency or two. Also note that it's a slightly different use case (can only return different values, is not used for flow control).

[1] https://github.com/llvm-mirror/llvm/blob/master/include/llvm...

1 comments

It is mentioned right near the end of the slides.