Comment

Comment by throwaddzuzxd

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.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton