Re:Use perfect hashing, instead of binary search, for keywor...
by nicoburns on Thursday January 10, 2019 @09:36PM
(#18880576)
D does this. Although it's not necessarily one or the other. C++ has the c preprocessor, templates, and constexpr. Rust has macros, but is looking at adding const function evaluation too.
[ Parent
| on HN ]
Re:Use perfect hashing, instead of binary search, for keywor...
by steveklabnik on Thursday January 10, 2019 @10:35PM
(#18880813)
const fn has already landed, though a minimal version whose powers we are expanding upon almost every release.