O'Reilly logo

Clojure for Finance by Timothy Washington

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

Extensible Data Notation

Notice that, so far, we've just written out lists of keywords. The output file shows the exact data we submitted in our REPL. Recall that Clojure, like all Lisps, is homoiconic. This means that your code is also data. By comparison, you cannot simply write out Java or Haskell program elements. You can write out their code's string equivalents. However, you can't do this with literal code as it lives in the runtime. Clojure has used this homoiconic quality to distill a subset of itself into a data format called the Extensible Data Notation (EDN) (you can read more at https://github.com/edn-format/edn).

EDN data values should be considered as immutable, having no notion of any program reference in a language's runtime (that ...

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