oakmac / open-ideas

a Place to Store Ideas
2 stars 0 forks source link

Simple Object Files #2

Closed oakmac closed 8 years ago

oakmac commented 8 years ago

There is not a good file format for structured data when you want to store raw text. JSON requires you to escape strings, and YAML has many special character sequences.

You could use Markdown for this - like @shaunlebron does for Parinfer examples - by being disciplined about what you put in the file, but you would still have to follow Markdown's syntax rules and write a custom parser for every different format.

There should be a small library for storing raw text as an object / hash-map. You could just pick one delimiter and make it configurable depending on what is being stored in the text.

This idea is inspired from how examples are stored in autocomplete.js and chessboard.js.

shaunlebron commented 8 years ago

:+1:

oakmac commented 8 years ago

https://github.com/oakmac/kidif.js