> 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.
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.