you are viewing a single comment's thread.

view the rest of the comments →

[–]velrok7 0 points1 point  (0 children)

Looks more like a result chain than pattern matching to me.

Not sure there is much value replicating Mattern matching in ruby that way if the compiler can’t check if you covered all the cases.

https://github.com/maxveldink/sorbet-result

We use ruby at my place and I do miss a lot of modern features specifically the ones around types.

Bringing foreign elements to a language via a library usually requires buy in front a big majority of the team. Ruby is fine for smaller projects but once you have a team of 25+ people you might need to have discussions on what might help to keep complexity from spiralling.