there appears to be an issue with how double quotes " are represented in various string outputs, either in embedded double quotes or when printing out sequences.
This is I think a side effect of using the internal python to string representation, which does not escape quotes.
To reproduce,
Open up the REPL and str or prn string with embedded quotes or sequences.
Hi,
there appears to be an issue with how double quotes
"
are represented in various string outputs, either in embedded double quotes or when printing out sequences.This is I think a side effect of using the internal python to string representation, which does not escape quotes.
To reproduce,
str
orprn
string with embedded quotes or sequences.embedded quote not escaped in returned string
basilisp.user=> (str "\"a") ""a"
a
not wrapped in quotesbasilisp.user=> (str ["a"]) "[a]"
basilisp.user=> (pr ["a"]) nil ["a"]
embedded quote not escaped
basilisp.user=> (pr "\"a") nil ""a"
basilisp.user=> (pr ["a"]) nil ["a"]
Not sure how to fix this, would this require register a new
lrepr
function for python strings?Thanks