~/talk

Pattern Matching in Ruby

Talkat RubyKaigi 2017 · 2017-09-18..09-20· [ruby-on-rails]
links:none on file
slides:none on file

Proposes a concrete pattern‑matching spec for Ruby and shows a working implementation by modifying parse.y to parse a new %p pattern literal and inject matching code into the AST, compiled to bytecode. Demonstrates array, hash, nested and regex guard patterns, class checks and variable binding; examples successfully bind matched values. Implementation is released as a Ruby library, is functional though still limited and buggy, and supports pattern matching without external gems.

AI-written summary · about

  1. 0:00Introduction and goals
  2. 2:23Demonstrating pattern matching
  3. 5:31Concepts and inspiration
  4. 10:44Proposal and examples
  5. 19:41Internal implementation
  6. 24:18Closing and acknowledgments
  7. 26:14Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.