C++ Weekly - Ep 183 - Start Using Raw String Literals

preview_player
Показать описание
☟☟ Awesome T-Shirts! Sponsors! Books! ☟☟

Upcoming Workshop: Understanding Object Lifetime, C++ On Sea, July 2, 2024
Upcoming Workshop: C++ Best Practices, NDC TechTown, Sept 9-10, 2024
Upcoming Workshop: Applied constexpr: The Power of Compile-Time Resources, C++ Under The Sea, October 10, 2024

T-SHIRTS AVAILABLE!

WANT MORE JASON?

SUPPORT THE CHANNEL

GET INVOLVED

JASON'S BOOKS

► C++23 Best Practices

► C++ Best Practices

JASON'S PUZZLE BOOKS

► Object Lifetime Puzzlers Book 1

► Object Lifetime Puzzlers Book 2

► Object Lifetime Puzzlers Book 3

► Copy and Reference Puzzlers Book 1

► Copy and Reference Puzzlers Book 2

► Copy and Reference Puzzlers Book 3

► OpCode Puzzlers Book 1


RECOMMENDED BOOKS

AWESOME PROJECTS

O'Reilly VIDEOS

Рекомендации по теме
Комментарии
Автор

Raw strings are awesome. I use them frequently to "embed" GLSL code into C++ source code.

wintermute
Автор

I'm working with C++ for 2 years and I still learn about syntax ! Thx.

EpicSnakes
Автор

Raw strings are life saving for complex regular expressions. No escaping \, "etc. You can write regex directly, just like in perl which is much more readable.
I use them also for complex SQL queries which can now have multiple lines without making each of them a separate literal and relying on pasting adjacent literals

pazdziochowaty
Автор

Please post a link to the .vimrc that enables extra language syntax highlighting inside raw string literals. That sounds like the bomb!

GoatTheGoat
Автор

Very useful for writing shaders. clang-format also supports them.

jankodedic
Автор

Thank you Jason for your time to do this video. I appreciate #cpp #cpp17 #cpp11 #cpp20 #cplusplus

danielphd
Автор

Great Tutorial! I like how you get straight to the point !

generalguderian
Автор

For those who are new to using vim like a pro, I would be glad if you could share your vim configuration which parses raw string literals.

canberksonmez
Автор

I wish there was a feature in youtube to set a channel to default at a different playback speed. These videos are very informative but they're hard to pay attention to at anything slower than 1.5x speed.

Oaisus
Автор

Great! I never heard or read about that feature.

LittleGnawer
Автор

This is very relevant t my interests. Somehow this had missed me entirely. I have lots of
"This is one line\n\
this is another." Gross, I'll be happy to fix these!

trevorschrock
Автор

In mid 2000s I was writing code that generated output in HTML. Oh the fun of writing HTML and CSS using single lines of c++.

axelBr
Автор

I definitely saw that R before, but I have forgotten it. Thanks

nmmm
Автор

I once used a raw string literal to output code I had written in an online C++ editor. For some reason, copying from the input textbox was not allowed, but copying from output was. I wrapped the entire thing in raw string delimiters and stuck it within just enough “Hello World” code to get what I wanted.

atimholt
Автор

I really like them use it a lot but one of the rare language implemented features.

platin
Автор

When you said we can use custom tokens to terminate string literals, I was like !!!" no more backslash, quote name collisions... actually this language design f*cked me so hard when I was working with ASCII symbols inside C++

bwatspro
Автор

template<unsigned X> important parts of c++17 in X minutes

Nyarmith
Автор

Is there any advantage of this over say the tripple quote string?

RamkrishanYT
Автор

Is it correct to say that raw strings are wysiwyg strings?

brotherhood_of_harkonnen
Автор

I wonder why they chose parenthesis for this. I know you can define your own prefix, it's just there are many much rarely used characters than parenthesis.

Ultranium