Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The new C++ derived syntax for string literals seems to me to be the top new feature. It will make it possible to support markdown, latex, R code and Windows path literals without munging them first.


If I understand, does this mean on windows when I've copied a file location I would no longer have to replace backslash in the file path with double back slash or forward slashes? Or am I off-piste?


Correct. One can write r"(c:\Windows\System32)" . Check out additional examples at the end of the help file: https://github.com/wch/r-source/blob/trunk/src/library/base/...


Awesome




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: