Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
zozbot234
2 days ago
|
parent
|
context
|
favorite
| on:
Patterns for Defensive Programming in Rust
You can solve this in the general case by implementing the typeclass for the coarser equality relation over an ad-hoc wrapper newtype.
hurril
2 days ago
[–]
Well it isn't a good call. This is the kind of code that OOP makes people write.
reply
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: