Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
nicoburns
on Jan 11, 2019
|
parent
|
context
|
favorite
| on:
Use perfect hashing, instead of binary search, for...
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.
steveklabnik
on Jan 11, 2019
[–]
const fn has already landed, though a minimal version whose powers we are expanding upon almost every release.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: