Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
saagarjha
on March 12, 2020
|
parent
|
context
|
favorite
| on:
Rust 1.42
matches! looks quite useful, I’ve been looking for a replacement to Swift’s ~= operator and this should do nicely.
kzrdude
on March 12, 2020
[–]
Matches is great - already existed in a nice microcrate. But assert_matches is now missing! :)
Nemo157
on March 13, 2020
|
parent
[–]
The long term plan is to make assert! smart enough to recognise the assertion and provide good error messages based on its shape, maybe eventually deprecating assert_eq! etc.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: