28 Jun
2011
28 Jun
'11
12:06 p.m.
Jean-Marie Gaillourdet 於 2011/6/28 下午4:57 寫道:
Hi Audrey,
are you aware that Haskell already supports multi-line strings?
foo = "This is a\ \multi-line\ \string!"
Hi Jean-Marie, Yeah, I am aware of that, I wrote a 381-lines multi-lines strings once… :-) https://github.com/audreyt/Pugs.hs/blob/master/Pugs/src/Pugs/Prim.hs#L1863 though as Ivan++ remarked, the extra "\n" is quite cumbersome, and so string-qq just makes it slightly easier to copy-paste multi-line string sections. Cheers, Audrey