top | item 39463589

(no title)

coderedart | 2 years ago

Won't you still have to escape the closing bracket if it occurs inside the string?

discuss

order

lisper|2 years ago

Only if you want to refer to it literally as a closing quote rather than having it act as a closing quote. That case is extremely rare.

coderedart|2 years ago

Its definitely rarer than double or single quotes occurring in string. But I was wondering about the parent comment's concern of passing a string through multiple levels of escaping.

> until you need to get your string through several levels of escape. how many backslashes to add? depends on how deep your pipe is and how each of those layers is defined