mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-01-17 13:38:38 +01:00
Reword the intro, make section more obvious
This commit is contained in:
parent
e8b9f47ce4
commit
5789ae6772
@ -7,13 +7,12 @@ contributors:
|
|||||||
|
|
||||||
Extensible Data Notation or EDN for short is a format for serializing data.
|
Extensible Data Notation or EDN for short is a format for serializing data.
|
||||||
|
|
||||||
The notation is used internally by Clojure to represent programs and
|
The notation is used internally by Clojure to represent programs and it also
|
||||||
it is used commonly by Clojure and Clojurescript programs to transfer
|
used as a data transfer format like JSON. Though it is more commonly used in
|
||||||
data. Though there are implementations of EDN for many other
|
Clojure land, there are implementations of EDN for many other languages.
|
||||||
languages.
|
|
||||||
|
|
||||||
The main benefit of EDN is that it is extensible, which we will see
|
The main benefit of EDN over JSON and YAML is that it is extensible, which we
|
||||||
how it is extended later on.
|
will see how it is extended later on.
|
||||||
|
|
||||||
```Clojure
|
```Clojure
|
||||||
; Comments start with a semicolon.
|
; Comments start with a semicolon.
|
||||||
@ -37,8 +36,7 @@ false
|
|||||||
\g \r \a \c \e
|
\g \r \a \c \e
|
||||||
|
|
||||||
; Keywords starts with a colon. They behave like enums. Kinda
|
; Keywords starts with a colon. They behave like enums. Kinda
|
||||||
; like symbols in ruby land.
|
; like symbols in ruby.
|
||||||
|
|
||||||
:eggs
|
:eggs
|
||||||
:cheese
|
:cheese
|
||||||
:olives
|
:olives
|
||||||
@ -74,7 +72,9 @@ false
|
|||||||
; Sets are collections that contain unique elements.
|
; Sets are collections that contain unique elements.
|
||||||
#{:a :b 88 "huat"}
|
#{:a :b 88 "huat"}
|
||||||
|
|
||||||
;;; Tagged Elements
|
;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
;;; Tagged Elements ;;;
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
; EDN can be extended by tagging elements with # symbols.
|
; EDN can be extended by tagging elements with # symbols.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user