Better HN
topnewbestaskshowjobs
Log inSign up

throwaway9768

1 karma · joined Feb 22, 2025 (1y ago) · 1 submissions

Submissions

comment 1y ago · link · parent

Although it is a common case, changing the lookup to use an explicit array is a simple fix for code that relies on this optimization. Even non-consecutive ranges are often straightforward to handle with C array designators (standardized for 25 years now!)