The Case for Pattern Matching Key Irreverence in Ruby
17-Jun-2022 1001
I had alluded to this post a bit earlier on Twitter, and in the Ruby bug tracker, but wanted to more fully write out my thoughts on what could be an incredibly powerful paradigm shift in how Ruby treats pattern matching on hash-like objects.That idea, simply, is to treat the keys argument to destructure_keys as if they were keyword arguments, rather than as literal Symbols.
The Case for Pattern Matching Key Irreverence in Ruby #ruby #rubydeveloper #rubyonrails #Pattern #Matching #Irreverence https://rubyonrails.ba/link/the-case-for-pattern-matching-key-irreverence-in-ruby