Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
bvrmn
16 days ago
|
parent
|
context
|
favorite
| on:
Zig: Pointer Stability for ArrayLists
ArrayList is a very generic (pun not intended) structure and could be stretched quite freely in any direction with useful property of owning underlying slice. Like readonly preallocated ArrayList is a thing.
_bohm
16 days ago
[–]
That's a good point. Using lockPointers would be a good way to enforce at runtime that your ArrayList is truly read-only.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: