Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
kzrdude
on Jan 20, 2021
|
parent
|
context
|
favorite
| on:
Again on 0-based vs. 1-based indexing
You can't represent the length of that same array in the domain, which is normally enough to make this scenario unusable.
gliptic
on Jan 20, 2021
[–]
Not always, I've used bytes to store indexes to arrays of 256 elements. The length doesn't have to be the same narrow type as the indexes.
Consider applying for YC's Winter 2027 batch!
Applications
are open till November 2.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: