3 ms·
Usually people have to refer to a slice cheat sheet to work with it, perhaps it’s not an intuitive concept/api
by zaphirplane 8y ago
Usually people have to refer to a slice cheat sheet to work with it, perhaps it’s not an intuitive concept/api
- burntsushi 8y agoThat's because of a lack of named methods to perform common operations. It has nothing to do with the fact that slices are fat pointers. Also, nobody I know constantly looks at a cheat sheet. The concepts motivating the various slice transformations get ingrained pretty quickly.