Hacker News new | ask | show | jobs
by nalgeon 862 days ago
If you find the official release notes a bit dry, I've made an interactive version: https://antonz.org/go-1-22
5 comments

Cool, that does help. It wasn't immediately obvious what the problem with the for loop sharing thing meant, but seeing it run and give unexpected results helped. :)
Thank you this is awesome. I find it so much quicker to read and understand things like this with examples.. and these are runnable / editable! Sick.
The Compact and Replace examples leave me puzzled, are they correct?
They are correct.

> Functions that shrink the size of a slice (Delete, DeleteFunc, Compact, CompactFunc, and Replace) now zero the elements between the new length and the old length.

Oh, it's great.
really cool