You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The interpretation of StringContext.s is strange when applied to the string literal s"a\nb". According to SIP-11 (String Interpolation) the standard interpolation should replace every escape character sequence by the denoted character, therefore I expected a result of length 3.
scala>s"a\nb"
res0:String=
a\nb
b
scala> res0.length
res1:Int=6
The text was updated successfully, but these errors were encountered:
Explanation: in the current version, str is appended to the buffer, and then on the buffer substring is called (which has no effect), i.e. without sugar: bldr.append(str).subsring(start, cur)
The interpretation of StringContext.s is strange when applied to the string literal
s"a\nb"
. According to SIP-11 (String Interpolation) the standard interpolation should replace every escape character sequence by the denoted character, therefore I expected a result of length 3.The text was updated successfully, but these errors were encountered: