audreyt / interpolatedstring-perl6

QuasiQuoter for Perl6-style multi-line interpolated strings with q, qq and qc support.
http://hackage.haskell.org/package/interpolatedstring-perl6/
Creative Commons Zero v1.0 Universal
25 stars 8 forks source link

Does `qc` and `q` treat escaping backslash differently intentionally? #4

Closed Wizek closed 9 years ago

Wizek commented 9 years ago
*Debug.Dump> putStrLn [qc|\"|]
"
*Debug.Dump> putStrLn [q|\"|]
\"

Is this intentional?

audreyt commented 9 years ago

Yes, that's how qc handles \{ sequences.

Wizek commented 9 years ago

I am not sure I follow. I think it is okay if { and \{ are given special meaning, but wouldn't it be possible to have the same behaviour for \" for the two?

audreyt commented 9 years ago

I see. You're completely right. :rainbow: Duly fixed as suggested.

Wizek commented 9 years ago

Thanks!