TechGuild
1Level 1, Curious Newcomer

Slices, maps, and the aliasing trap

A slice is a view onto an array, which is why append sometimes writes through into somebody else's data. This lesson covers the slice header, the capacity rules, the two nil map behaviours and the map element that cannot be assigned to.

12 min readintermediate

Sign in to read this lesson

This lesson is part of The language, which a free account opens. The orientation module of every course reads without one.

An account is free. There is no paid plan, no tier and nothing to buy.