Skip to content
This repository has been archived by the owner on Feb 8, 2021. It is now read-only.

No animals were harmed #21

Open
stellentus opened this issue Feb 22, 2017 · 3 comments
Open

No animals were harmed #21

stellentus opened this issue Feb 22, 2017 · 3 comments

Comments

@stellentus
Copy link
Contributor

After the "No animals were harmed slice" it would be interesting to see a slide that changes 'hungryCat[0]' and shows that the original animal slice was modified.
One of the students asked about this.
This is a very important warning for working with slices. I think it often trips up new users.

@stellentus
Copy link
Contributor Author

Mutation came up in "Mutation happens" but it might help to reference it earlier as well.

@stellentus
Copy link
Contributor Author

Is there a copy function for slices? It could be referenced here, too?

@stellentus
Copy link
Contributor Author

The "change capacity" discussion was done live but it would be nice to see it in a slide so students (and future teachers) can refer to it.

I think more slides showing mutation problems could be helpful... or just really, really confusing. Probably just confusing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant