Any reason you're not using a string interpolation? Writing s"""\\usepackage""" works. Otherwise, you could write """⧵usepackage""".replace('⧵', '\\') where '⧵' is the reverse solidus operator :^)
-
-
-
Well, I am using string interpolation... but I thought that didn't work! So I just checked, and it didn't work with Scala 2.9, but does in 2.10. My code is actually on 2.12, but my "trick" dates back over a decade... ;)
- Show replies
New conversation -
-
-
That is from the days when IDEs and editors did not handle UTF8.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Probably a "cAsE wHErE wE dOn'T tRy tO iMpRoVe oVEr jAvA", like https://github.com/scala/bug/issues/3220 … was for a decade? :-)
-
Wow, I remember arguing about this back when multiline strings were introduced, around 2006/7... and it's still going.
- Show replies
New conversation -
-
-
On it's way to being Fixed in dotty.
-
@soc just linked me to the issue. I had no idea this hadn't been abandoned already, so thanks for your efforts to fix it! - Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.