Comment

Comment by gus_massa

This paragraph is scary. It looks like a good idea for the Golang version of the Underhanded C Contest.

> This trick is useful for returning a slice from an immutable array; if you accidentally append to the supposedly immutable slice, a copy is forced and no data is overwritten because there is no more capacity left.

parent gus_massa 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton