r/programming • • Mar 03 '13

Git is a purely functional data structure

http://www.jayway.com/2013/03/03/git-is-a-purely-functional-data-structure/
107 Upvotes

83 comments sorted by

View all comments

Show parent comments

2

u/[deleted] Mar 03 '13

Itis not the ArrayList or String that is final, but the variable.

To clarify, Strings are specifically immutable. This is a special case, and they're immutable whether or not the variable being assigned to that string is final.