5min chapter

Swift by Sundell cover image

117: “Swift 5.7, generics, and the road to Swift 6”, with special guest Ben Cohen

Swift by Sundell

CHAPTER

Swift Regular Expressions

Rage literals are a way of expressing what you're trying to achieve, in terms of searching or replacing things in inside strings. It actually allows you, within the builder, to use rages when they're nice and short. The analogy i've been using is actually with that of closes - passing a closure into a function can map um, closers for like this really great example. You can even use dollar zero and one, so long as it's clearly clear what they're doing. And then if it gets a little bit longer than expected, you probably need to start naming the arguments. But I'm personally a big fan of regular expressions. When used appropriately,  they

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode