Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

matches! looks quite useful, I’ve been looking for a replacement to Swift’s ~= operator and this should do nicely.


Matches is great - already existed in a nice microcrate. But assert_matches is now missing! :)


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: