Completed
Intro
Class Central Classrooms beta
YouTube playlists curated by Class Central.
Classroom Contents
Understanding Nil
Automatically move to the next video in the Classroom when playback concludes
- 1 Intro
- 2 welcome every single one of you
- 3 nil is (a) zero
- 4 interlude a bit of history
- 5 zero values what are they?
- 6 the type of nil
- 7 nil is a predeclared identifier representing the zero value for a pointer, channel, func, interface, map, or slice type.
- 8 zero values what do they mean?
- 9 type, value
- 10 when is nil not nil?
- 11 do not declare concrete error vars
- 12 do not return concrete error types
- 13 nil receivers are useful
- 14 use nil slices they're often fast enough
- 15 use nil maps as read-only empty maps
- 16 coding time
- 17 can we switch off a chan?
- 18 use nil chans to disable a select case
- 19 'nil values can satisfy interfaces
- 20 use nil interfaces to signal default
- 21 nil is useful