Hacker News new | ask | show | jobs
by throwaddzuzxd 1472 days ago
It's worth noting though that Go's way is just 40 characters more than Python with an inline comparison function and Go's verbosity.

If I need to reverse the order, it looks easier to do with Go (just reverse the operator) than with Python and Rust way (I guess both have something like an "order" additional parameter).

Rust and Python both feel more elegant but I actually like Go's way.

1 comments

Python has a `reverse=True` kwarg for doing this.