This looks very useful!

One feature I'd like to see, that we currently do in a hacky way: a variant
string syntax that allows double-quotes, backslashes and newlines within
it. (Our syntax uses a back-quote as the delimiter, and converts everything
up to the next back-quote into a regular JSON string, inserting escapes.)

This is very useful if you need to embed JavaScript source code in a JSON
document, which very often happens in CouchDB "design documents" and also
in the configuration documents for the Couchbase Sync Gateway I'm working
on. In regular JSON, the JavaScript usually turns into a mess of
backslashes all glommed onto a single line.

I'd love it if we could use your preprocessor instead of our current
regex-based hack.


You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Discussion Posts


Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 8 of 9 | next ›
Discussion Overview
groupgolang-nuts @
postedSep 25, '13 at 12:31a
activeSep 27, '13 at 1:33a



site design / logo © 2022 Grokbase