-
-
Notifications
You must be signed in to change notification settings - Fork 675
Description
The introduction.md document of the gross-store exercise has some things that should be tweaked. Most of the tweaks are related to this part of the docs:
- The information provided should give the student just enough context to figure out the solution themselves.
- Only information that is needed to understand the fundamentals of the concept and solve the exercise should be provided. Extra information should be left for the concept's about.md document.
Applying this to the introduction file leaves us with the following tweaks:
Remove the comparable information section:
KeyType must be any comparable type, while ElementType can be any valid type in go, which means you can store anything from primitive variable to a slice.
This information is great for the concept's about.md document, but not needed for the student to solve the exercise.
map is reference type, which means if you pass it around, go won't copy the whole map. Instead what go will do is go copy the pointer of the map, this makes passing map to a function or variable cheap.
This information is great for the concept's about.md document, but not needed for the student to solve the exercise.
Remove the nil section:
The value of an uninitialized map is nil.
The concept of nil is not known to the student as this point and also not needed to solve the exercise AFAICT.