Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Agreed again about understanding the difference between call by reference or call by value :) The point I tried to make was that in an dynamic language you should be careful about the assumption that the method input is indeed a primitive type.
Not really an issue in code like this Kata of course. Unless somebody built a class that overloads & and >> :D
Agreed that it doesn't affect the outer scope's value.
However, I would argue that in a dynamically typed language, one should be extra careful about this.
This one modifies the input variable. Isn't that considered bad practice?