Raw Strings

ยท๐ŸŽ iOS & Swift
Swift 5๋ถ€ํ„ฐ ์ง€์›ํ•˜๋Š” ๋ฌธ์ž์—ด ํ‘œํ˜„ ๋ฐฉ๋ฒ•์— ๋Œ€ํ•œ ๊ฐœ์„ ์ ์„ ๊ฐ™์ด ์•Œ์•„๋ด…์‹œ๋‹ค. SE-0200 Enhancing String Literals Delimiters to Support Raw Text ๋งŽ์€ ๋‹ค๋ฅธ ์–ธ์–ด์™€ ๋งˆ์ฐฌ๊ฐ€์ง€๋กœ Swift๋Š” ์ด์Šค์ผ€์ดํ”„ ๋ฌธ์ž( \ )๋ฅผ ์‚ฌ์šฉํ•ด์„œ ๋ฌธ์ž์—ด ๋ฆฌํ„ฐ๋Ÿด ๋‚ด์—์„œ ํ›„์† ๋ฌธ์ž์˜ ํŠน๋ณ„ํ•œ ํ•ด์„์„ ๋งŒ๋“ญ๋‹ˆ๋‹ค. ์ด์Šค์ผ€์ดํ”„ ๋ฌธ์ž ์‹œํ€€์Šค๋Š” ๋ฌธ์ž์—ด ๊ตฌ๋ถ„ ๊ธฐํ˜ธ(ํฐ ๋”ฐ์˜ดํ‘œ), ์ด์Šค์ผ€์ดํ”„ ๋ฌธ์ž(๋ฐฑ ์Šฌ๋ž˜์‹œ), ๋ฌธ์ž์—ด ๋ณด๊ฐ„ ๋“ฑ์— ๋Œ€ํ•œ ๋ฌธ์ž ์ง‘ํ•ฉ์„ ๋‚˜ํƒ€๋ƒ…๋‹ˆ๋‹ค. ์‚ฌ์‹ค ์ด์Šค์ผ€์ดํ”„ ๋ฌธ์ž๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ์€ ๋„ˆ๋ฌด ๊ท€์ฐฎ์€ ์ผ์ด๊ณ , ๋ฌธ์ž์—ด ๋ฆฌํ„ฐ๋Ÿด ์•ˆ์— ๋งŽ์€ ์ด์Šค์ผ€์ดํ”„ ์‹œํ€€์Šค๊ฐ€ ํฌํ•จ๋˜์–ด ์žˆ์œผ๋ฉด ์ฝ๊ธฐ ์–ด๋ ต์Šต๋‹ˆ๋‹ค. ์ด๋ฅผ Apple์—์„œ ์•Œ์•„์ฃผ์—ˆ๋Š”์ง€ Swift 5๋ถ€ํ„ฐ๋Š” ์กฐ๊ธˆ ๋” ๋‹จ์ˆœํ•˜๊ณ  ๊น”๋”ํ•˜๊ฒŒ ๋ฌธ์ž์—ด ๋ฆฌํ„ฐ๋Ÿด ๊ตฌ๋ฌธ์„ ์ž‘์„ฑํ•  ..
taeeekki
'Raw Strings' ํƒœ๊ทธ์˜ ๊ธ€ ๋ชฉ๋ก