Talks
Speakers
Events
Topics
Sign in
Home
Talks
Speakers
Events
Topics
Leaderboard
Use
Analytics
Sign in
Suggest modification to this talk
Title
Description
RubyKaigi2017 http://rubykaigi.org/2017/presentations/yotii23.html Do you want pattern matching in Ruby? I want. It will make Ruby more elegant, more useful, and more comfortable. So in this talk, I'll propose a specification about pattern matching in Ruby and will show my implementation in parse.y (a part of them).
Date
Summarized using AI?
If this talk's summary was generated by AI, please check this box. A "Summarized using AI" badge will be displayed in the summary tab to indicate that the summary was generated using AI.
Show "Summarized using AI" badge on summary page
Summary
Markdown supported
The video titled **"Pattern Matching in Ruby"** is presented by **Yuki Torii** at **RubyKaigi 2017**. In this session, Yuki discusses the concept of pattern matching in Ruby, outlining its potential to enhance the language's expressiveness and usability. The presentation aims to propose a specification for pattern matching in Ruby along with an implementation that Yuki developed. **Key Points Discussed:** - **Introduction to Yuki Torii**: Yuki is a developer at Every Leaf Cooperation and has significant experience in translation and programming literature. He is also a member of RubyKaigi Japan. - **Purpose of Presentation**: The goal is to explain pattern matching, demonstrate its implications for Ruby, and showcase an implementation designed to extend Ruby's functionality. - **Understanding Pattern Matching**: Yuki provides a fundamental explanation of pattern matching, including its definition from Wikipedia, and refers to existing pattern matching capabilities in Ruby, including regular expressions. - **Comparison with Elixir**: The presentation contrasts Ruby’s current matching capabilities with Elixir's advanced pattern matching system, highlighting how Elixir allows complex matches and error handling that can improve usability. - **Proposed Improvements**: Yuki introduces a new operator `%p` for Ruby, which would mimic Elixir's syntax and enable clearer and more elegant pattern matching. - **Practical Examples**: The speaker shares simple and complex examples using Ruby code, demonstrating how the proposed pattern matching features work, including matching arrays and creating hash patterns to assign variable names based on matches. - **Vision for Ruby**: The proposal emphasizes making Ruby more user-friendly and powerful in handling complex data structures. - **Conclusion and Call for Feedback**: Yuki concludes by encouraging listeners to consider the value of the proposed features and invites questions from the audience, thanking his husband for his support throughout this process. This presentation underlines a significant potential enhancement for Ruby, aimed at enhancing its utility and elegance by adopting more expressive pattern matching capabilities.
Suggest modifications
Cancel