3 ms·
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
by chucke 7y ago
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.
- pansa 7y ago> 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.
- akuchling 7y agoStandard library packages can be declared "provisional": https://www.python.org/dev/peps/pep-0411/ 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.
- brigandish 7y agoThe 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 https://rubygems.org/gems/pattern-match