Alternate string quote syntaxes
Motivation
- doc strings with examples could be more human readable
XML, JSON or SQL generation tests become filled with escaped quotes
Possible Solutions
Python-like triple quoted strings
Pros:
- relatively simple syntax
Cons:
- minor breaking change
- have to add reader macro
- breaking change to every other tool that reads Clojure syntax
- including regexp-based syntax colorers, etc.
Puzzles:
Heredocs
Pros:
Cons:
Puzzles:
String Interpolation / Templating
Pros:
Cons:
Puzzles:
- is the built-in format function enough?
Labels: