Raw strings in Swift

preview_player
Показать описание
Introduced in Swift 5.0, raw strings give us the ability to make strings where backslashes and quote marks are interpreted as those literal symbols rather than escapes characters or string terminators.

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

Questions? Comments? Tweet me @twostraws.

twostraws
Автор

Thanks for a good succinct set of uses.

semilife
Автор

I really don't see how this helps that much. Maybe some benefit in the edge case of Regular Expression strings. But it's not a core update and it seems like the swift team is adding excess options for the same thing. Still, I guess you have to keep busy somehow.

petersuvara
Автор

thanks for the nice videos! i find you narrating or reading out the code you're typing quite confusing though, I'm not sure it adds anything

appalling
Автор

An internal error occured... :( After a while xcode closing itself

ZAPable
Автор

How many times did you have to say hash, quote, and backslash in the making of this video? 😂

All kidding aside, this change will definitely make certain things easier when they come up.

JasonMitchellAZ