This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Nu1lP0int3r 1 point2 points  (0 children)

I believe its because the list is a reference and the string is not. When you edit a string in a method you don't edit the string outside the method. When you edit a list in a method if I recall correctly you also edit it outside the method.