Skip to content

[Sept Sprint] New exercise teaching pointers #1643

@ErikSchierboom

Description

@ErikSchierboom

This is part of our September Spring to get the Go Track in shape. Please read the Overview issue for more details. This exercise is unclaimed. To claim it, please comment below.


Before building this exercise (or exercises), please read up on the documentation.

We need an exercise for the pointers and nil concepts. These concepts go well together so it makes sense to teach them in the same exercise.

The exercise should teach:

  • What pointers are
  • Pointer types for primitives
  • Which types are already pointers
  • Explain that go has no pointer arithmetic
  • Referencing and dereferencing syntax
  • nil as zero value for the pointer
  • pitfalls when working with pointers (always check whether they are nil before dereferencing)

Keep in mind that the concept of pointers might be hard for people coming from languages that don't have explicit pointer types.

Metadata

Metadata

Labels

x:status/claimedSomeone is working on this issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions