Ruby master - Feature #16670: Reverse order of `expression` in `pattern` for...
I do not think reddit discussions are that useful, largely because it is difficult to find what is really going on (content-to-noise ratio), and the article title was actually "2.7's pattern matching...
View ArticleRuby master - Misc #16678: Array#values_at has unintuitive behavior when...
Actually .values_at() confused me when I tried to use my go-to method for obtaining a slice from an Array:a[3..5] # => [4, 5] There I wondered why it did not return the same. :-)But anyway; I...
View ArticleRuby master - Feature #16684: Use the word "to" instead of "from" in backtrace
I do not necessarily have a strong preference between "to" and "from". I am not a native english speaker either; maybe it is best if a native english speaker could share an opinion in regards to...
View ArticleRuby master - Feature #16688: Allow #to_path object as argument to system()
I do not have a strong opinion either way; I myself sort of just use Dir[] rather than Pathname (I just love Dir['*.rb'] and things like that), so I would not need pathname anyway. But I can understand...
View ArticleRuby master - Feature #16699 (Feedback): Silence/ignore particular warnings...
I would like to make it possible to briefly enable or disable particular warnings: those related to modifying a constant or a method.It is possible to silence a specific warning as in:SOME_CONSTANT =...
View ArticleRuby master - Bug #16701 (Rejected): Odd output when using _1 ("ordinary...
I have tried to reproduce this issue into a small script, so first the code, to ease copy/pasting (don't mind the quality; I encountered this in a larger script, so I just tried to narrow this...
View ArticleRuby master - Bug #16701: Odd output when using _1 ("ordinary parameter is...
Yikes, small copy/paste typo from me above; should bedef foobar(i = @hash)
View ArticleRuby master - Feature #16742: RbConfig.windows? and RbConfig.host_os
I agree that RbConfig.windows? seems intuitive to me, in the sense that it would or could or should refer to the windows (Microsoft) platform.I also concur with the explanation given.As for...
View ArticleRuby master - Feature #16745: Improving Date and DateTime comparison
I think this may go only after a ruby 3.0 release. Personally I'd love to simplify all of Date, Time and DateTime - but I guess that would mean even more backwards incompatible changes. :)
View ArticleRuby master - Feature #16746: Endless method definition
I'm paranoid that the ends end Ruby. I hope Ruby is endless.With so many cancellations of events this year, we may not want to want to jinx ruby too much for the 3.0 release this year because then 3.0...
View ArticleRuby master - Feature #16752: :private param for const_set
I somewhat agree with sawa here.This may still leave the issue over whether one may prefer a single line/method call, but I believe this may largely depend on the use case more (if there is one). I can...
View ArticleRuby master - Feature #16754: Pager for `--help`
I think the basic idea for the suggestion is fine.There may be cases where the ruby user may prefer to not use (or depend) on a page and may be fine with a long message output from --help. This may...
View ArticleRuby master - Feature #16754: Pager for `--help`
Oh... I just noticed in the code, I think that is the environment variable?My C knowledge is so bad, but I guess getenv() indicates that. :Dconstchar*pager_env=getenv("RUBY_PAGER");
View ArticleRuby master - Feature #16755: warning: `if' at the end of line without an...
You can filter the warnings by overriding Warning.warn, or using the warning gem:require 'warning' Warning.ignore(/`(els)?if' at the end of line without an expression/) That's pretty cool! I did not...
View ArticleRuby master - Misc #16778: Should we stop vendoring default gems code?
I believe that all of that kind of defeats the point of "gemification" of the standard library.If I remember correctly then this was not the only reason made in favour of gemifying core. One, for...
View ArticleRuby master - Feature #16786: Light-weight scheduler for improved concurrency.
One issue I see is that this adds another API (Scheduler) for people to have to remember. They will have to know how/when to use Mutex, Thread, Fibers, perhaps Guilds, and now Scheduler.Is this really...
View ArticleRuby master - Feature #16791: Shortcut for Process::Status.exitstatus
This is not a good feature request, IMO.There is not really any explanation as to what the idea is about. Why is p pid and s existatus suddenly? And why should that be common if one can already extend...
View ArticleRuby master - Feature #16794: Rightward operators
It's an interesting idea. I am not sure if I can easily adjust to the syntax, but this may be best to just ask matz directly (I think he suggested the pipeline operator, and streem kind of also taps...
View ArticleRuby master - Feature #16795: build ruby.exe on Windows against...
I feel you here. Not so much due to windows, but I totally understand every preference for --enable-shared and --enable static. :-)Perhaps nobu and greg can help for the windows-related issues; perhaps...
View Article