News for hackers. Stuff that matters.
Re:Pattern Matching in Ruby 2.7 (2019) by chucke on Thursday January 09, 2020 @04:26AM (#21999715)
Refinements was also at some point marked as "experimental", and jruby maintainers have at some point declared not wanting to support it. It's 2020, refinements are still here, and jruby supports them, even with all its imperfections.

I'm wondering: how would you showcase an experimental feature to the community? Cuz if you're saying "3rd party library", there were already 3/ 4 different pattern matching libraries.

Re:Pattern Matching in Ruby 2.7 (2019) by pansa on Thursday January 09, 2020 @06:54AM (#22000432)
> how would you showcase an experimental feature to the community?

How do other languages do it? Python has the PEP process for discussing design on paper, but I don’t know how they handle experimental implementations.

Re:Pattern Matching in Ruby 2.7 (2019) by akuchling on Thursday January 09, 2020 @02:44PM (#22004808)
Standard library packages can be declared "provisional": https://www.python.org/dev/peps/pep-0411/

The PEP says "A provisional package is one which has been deliberately excluded from the standard library's backwards compatibility guarantees."

But there's no equivalent for language features, AFAIR.

Re:Pattern Matching in Ruby 2.7 (2019) by brigandish on Thursday January 09, 2020 @08:58PM (#22007815)
The aim, from memory, is to gemify most of the standard library so why not release it as a "blessed" gem?

Edit: I see there is already the pattern-match gem [1], released as a proof of concept, although obviously it has slightly different syntax. Still, the reason why `case` is chosen (because `match` cannot be used) seems very thin.

Should've stayed as a gem, IMO.

[1] https://rubygems.org/gems/pattern-match