Hacker News new | ask | show | jobs
by chickenfries 3308 days ago
I think in the second one, a simple list of values that correspond to true would be more reasonable than putting this in your source code, if you just need a look up table. The way the comments are structured though, I wonder if each row an option map, (annotated by the comments along the top)
1 comments

The second example was a 15 line switch statement that they replaced with a lookup because they thought it would be faster.