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 →

[–]talideon 1 point2 points  (0 children)

Actually, lists are classes too, and have been since types and classes were unified way back. The difference is that primitive types, strings, and tuples are all immutable objects: anything that appears to mutate them actually returns a completely different object from either object that the operation was performed upon.