Understanding Nil

Understanding Nil

Gopher Academy via YouTube Direct link

Intro

1 of 21

1 of 21

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. 1 Intro
  2. 2 welcome every single one of you
  3. 3 nil is (a) zero
  4. 4 interlude a bit of history
  5. 5 zero values what are they?
  6. 6 the type of nil
  7. 7 nil is a predeclared identifier representing the zero value for a pointer, channel, func, interface, map, or slice type.
  8. 8 zero values what do they mean?
  9. 9 type, value
  10. 10 when is nil not nil?
  11. 11 do not declare concrete error vars
  12. 12 do not return concrete error types
  13. 13 nil receivers are useful
  14. 14 use nil slices they're often fast enough
  15. 15 use nil maps as read-only empty maps
  16. 16 coding time
  17. 17 can we switch off a chan?
  18. 18 use nil chans to disable a select case
  19. 19 'nil values can satisfy interfaces
  20. 20 use nil interfaces to signal default
  21. 21 nil is useful

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.