Clojure.core: Batteries Almost Included
adambard.com
adambard.com
00:05 Found it in clojure.contrib
01:05 Figured out which standalone library it has moved to (or conclude that it has disappeared)
01:15 Figured artefact/group ID and current version out
That was a bit annoying.
"""
a
"""
parses as three strings, two of which are empty: "", "\na\n", and "". (Clojure strings are allowed to contain literal newlines.)1. Long regular expression strings that have quote marks involved. I'm not a fan of large, complex regexes, but a lot of people dislike the line-noise added by escaping.
2. Docstrings that may have quotes in them.
It's to remove the string escaping that makes literals look different from the strings they describe.
Thinking about it, I guess triple-quoted strings also facilitate doctests involving strings that would otherwise be really awkward to read/write.
I think this post would be a lot more useful if it included a link to clojars for each one of these libraries.