DEV Community

loading...

Discussion on: Modern C++ : Raw Strings

Collapse
delta456 profile image
Swastik Baranwal Author

I think you are right but I will strongly prefer people on going with the second method though.

Collapse
jmccabe profile image
John McCabe

Personally, I'd much prefer the first option. It's what's been used for decades and, although it's a bit ugly (especially if you use SMB shares that already involve double backslashes), I just think the R"(xxx)" notation is pretty awful. In Python it's r'string', no parentheses required, so this C++ version looks like an abomination that's hasn't been thought about properly to me.

Thread Thread
delta456 profile image
Swastik Baranwal Author

I just want people to know these things because it looks bad when seeing Traditional things but I also didn't like () too.

So yeah you are right!

Forem Open with the Forem app