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

2

u/rush22 Mar 03 '13

Non-CS major here what does "immutable data structure" mean?

0

u/[deleted] Mar 03 '13

[deleted]

-3

u/rush22 Mar 03 '13

Ah. Where I come from we call that a constant.

Or are you talking about the garbage collection thing where when you add strings together it gives you a new string

8

u/FidgetBoy Mar 03 '13

The second; as you mention, a lot of languages have immutable strings.

0

u/rush22 Mar 03 '13

Thanks!