r/coffeescript • • Mar 25 '15
Why CSON? Why not YAML?
Why did we create yet another data format, CSON? Why not use YAML?
5
Upvotes
r/coffeescript • • Mar 25 '15
Why did we create yet another data format, CSON? Why not use YAML?
View all comments
Show parent comment
1
u/pygy_ Mar 27 '15
The thing is, CSON files are not compiled to JSON (unless maybe you have a custom build step).
CSON.parsecalls the CoffeeScript parser at runtime and then checks the AST to verify that only the valid subset is used.