“Useless Ruby sugar”: Pattern matching (Pt. 3/3)

Nowadays, a lot of programming languages—including pretty mainstream ones—support structural pattern matching. To name (and link to) a few: Python and C#Rust and HaskellSwift and ElixirF# and Scala. (There are also proposals of various stages of readiness to introduce it in JS and C++.)

From this list alone, we can see that the feature is no longer a privilege of “functional” languages (whatever this means in our postmodern multiparadigm times) with which it was initially associated. There are static and dynamic languages in the list, languages old and new, languages that had PM from the beginning, and languages that introduced it in later versions.

.


“Useless Ruby sugar”: Pattern matching (Pt. 3/3) #ruby #rubydeveloper #rubyonrails https://rubyonrails.ba/single/useless-ruby-sugar-pattern-matching-pt-3-3

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles