Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Timshel
on Nov 24, 2024
|
parent
|
context
|
favorite
| on:
Rust's Two Kinds of 'Assert' Make for Better Code
In general such a thing is written with a wrapper type which disappear at compilation (a kind of stricter type alias).
In rust might be a NewType:
https://www.howtocodeit.com/articles/ultimate-guide-rust-new...
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
In rust might be a NewType: https://www.howtocodeit.com/articles/ultimate-guide-rust-new...