I think you can do that in Rust too (post 1.0). What's more impressive is that canonical go code from five years ago is still canonical.