Does clojure have raw string?

前端 未结 3 1552
青春惊慌失措
青春惊慌失措 2020-12-09 09:59

In Python, I can prefix an r to a string literal (raw string) to tell the interpreter not translate special characters in the string:

>>&g         


        
3条回答
  •  情书的邮戳
    2020-12-09 10:40

    Please also note that if you're using Counterclockwise (the Eclipse plugin for Clojure), there is a mode, called "smart paste" (disabled by default) which takes care of correctly escaping special characters when you paste inside an existing literal String.

提交回复
热议问题