3 ms·
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 n
by wyldfire 8y 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/ADT/StringSwitch.h#L23-L41 https://github.com/llvm-mirror/llvm/blob/master/include/llvm...
- BeeOnRope 8y agoIt is mentioned right near the end of the slides.