I only ever use Scala's \u???? escapes for one thing: writing `\usepackage foo` when I embed LaTeX in multiline strings. Like this: \u005cusepackage foo Just try writing it without them... Seriously, try it.
-
-
Replying to @propensive
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 :^)
1 reply 0 retweets 2 likes -
Replying to @LParreaux
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... ;)
1 reply 0 retweets 1 like -
Replying to @propensive @LParreaux
Interestingly, '\' displays correctly on my phone, but not on my computer, which is funny... I thought Twitter upgraded to 2.10.
1 reply 0 retweets 0 likes
Though *my* tweet shows it consistently... but yours changes!
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.