r/ruby • u/zverok_kha • Dec 25 '23
Ruby 3.3 changes
https://rubyreferences.github.io/rubychanges/3.3.html11
u/joltting Dec 26 '23
I don't know if I'll be in the minority, but using the term it is insane. I wasn't the biggest fan of _1, _2, ... as it comes off as a common Rubocop unused parameter suppressor, but at least it was distinctive enough. it looks and feels like a declared variable or method and the fact they need to clarify how it doesn't conflict with rspec says a lot.
8
u/zverok_kha Dec 26 '23
Logically, I am with you (I got to great length in here describing why numbered block parameters are rationally optimal).
Yet I acknowledge that aesthetics does matter for feature adoption, and aesthetically
itis probably winning over any "special" sigil. That's a tough situation, actually, it seems that there is no acceptable compromise between what would be both "rationally" and "aesthetically" good.I was against
it; yet my expectation is that now people would get used to it and would probably prefer it over_1; it would become just a part of the language's lore that "itis this special thing that has this special meaning, but only in some situations" (and, truth be told, it isn't hard to distinguish those situations, so, again, while "rationally" ambiguous, "intuitively" it is mostly clear when it has a special meaning).
4
2
-2
u/dunric29a Jan 26 '24
Ruby has not (yet) died? I'm just joking, it only is no more relevant… Like Perl which zenithed with 5.x versions or Ruby with its 2.7 iterations.
Bikesheding kind of development or unfulfilled promises about core concurrency support(Ractors? anyone?), inferior support for type-hinting etc were clear signs of a decline. I did like to create projects in RoR and even plain Ruby, but in current state is simply indigestible.
-2
u/dunric29a Jan 26 '24
Btw. that hilarious back-n-forth mistakes like unnamed block parameters (which literally save nothing but introduce obscurity only), remind similar chaotic approach with Elixir's like pipe operators, which were also ditched out (despite as an experimental feature). Bad engineering, or even none at all…
0
Dec 27 '23
[deleted]
2
u/zverok_kha Dec 27 '23
I don't think there's anything more structured than just looking through commits or closed bugs on the tracker.
1
23
u/zverok_kha Dec 25 '23
This year's installment. Even on time this year.
As per the project goals statement:
Full: unlike most "What's new in Ruby x.y?" blog posts, the information here targets to cover all the
NEWSfile of the current Ruby version (with the accent on the language changes, not internal/implementation changes, of which this year were plenty);Comprehensive: unlike the
NEWSfile itself (and most of blog-posts, too), the site provides full context for each change:Where and how it was discussed;
Related documentation at ruby-doc.org;
Code examples;
Reasoning for the change, if known.
Concise: given the two goals above, content still tries to stay short and focused so the changes can be quickly navigated through;
Well-structured: both regarding order/explanations of each particular change, and design of the site, it is intended to be easily and logically navigated.
Open: the source of the changelog is available on GitHub and is open for fixes and suggestions.