Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
brundolf
on Feb 27, 2023
|
parent
|
context
|
favorite
| on:
Zig's multi-sequence for loops
Interesting, are "trusted-length" iterators something that might ever make it into userspace? Maybe as const generics?
masklinn
on Feb 27, 2023
[–]
It’s already in userspace, though nightly (and unsafe, obviously), so whether it’ll be stabilised, and in what form, is an open question:
https://doc.rust-lang.org/std/iter/trait.TrustedLen.html
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: