O'Reilly logo

Clojure Applied by Alex Miller, Ben Vandgrift

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Wrapping Up

When building an application, we often find ourselves carrying updates forward through an otherwise pure application. If we’re clear about the rules, are responsible with our functions, and make good choices about what we need to manage, we can do it effectively.

Viewing your data and its changing state as a series of snapshots allows you to act responsibly when considering the presence of observers in other processes. In Clojure, those snapshots are kept as previous versions wrapped up in mutable references. This ensures that all observers have a consistent set of values as of a particular instant, and no one finds themselves in unfortunate circumstances.

We started this chapter by exploring the ideas about identity and state in ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required