Pattern matching in Ruby

Sheffield Ruby
Sheffield Ruby
Public group

Union St. Co-working space

18-20 Union Street, Sheffield, S1 2JP · Sheffield

How to find us

Our meetup will take place at our usual venue, Union St. After the meetup, we’ll be heading to The Devonshire Cat for drinks and a chat.

Location image of event venue

Details

About our talk

Pattern matching syntax was added to Ruby, in experimental form, in version 2.7. This talk will look at what it is, how we can use it, and where it fits in with existing Ruby control flow.

The syntax offers some useful ways to express control flow in places where we might have previously nested if statements or had to destructure data from complex objects.

We will also look at how pattern matching has developed in other languages, and find some good examples of using it in real production code.

About our speaker

Daniel King is a software engineer at Memberful.