Is there a reason that rust doesn't have a try_sort variant for sort that uses a fallible comparison function for sorting shit like floats?
-
Show this thread
Replying to @yaahc_
yosh Retweeted yosh
Lol, was thinking similar thoughts around the same time:https://twitter.com/yoshuawuyts/status/1249137834096766978 …
yosh added,
yosh @yoshuawuyts
New post: Fallible Iterator Adapters
@substack mentioned not being able to use `Iterator::min_by` because it cannot handle errors, so he had to write a manual loop instead.
This is a survey of all Iterator adapters that don't square with error handling.
https://blog.yoshuawuyts.com/fallible-iterator-adapters/ …
5:05 AM - 12 Apr 2020
0 replies
0 retweets
4 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.