[#101179] Spectre Mitigations — Amel <amel.smajic@...>
Hi there!
5 messages
2020/12/01
[#101180] Re: Spectre Mitigations
— Chris Seaton <chris@...>
2020/12/01
I wouldn’t recommend using Ruby to run in-process untrusted code in the first place. Are people doing that?
[#101694] Ruby 3.0.0 Released — "NARUSE, Yui" <naruse@...>
We are pleased to announce the release of Ruby 3.0.0. From 2015 we
4 messages
2020/12/25
[ruby-core:101818] [Ruby master Feature#17475] Implement arguments forwarding for blocks
From:
svoop_he38hj327c@...
Date:
2020-12-30 18:46:58 UTC
List:
ruby-core #101818
Issue #17475 has been updated by svoop (Sven Schwyn).
Found it, duplicate of rejected #16605. Sorry for the noise, can be closed/rejected.
----------------------------------------
Feature #17475: Implement arguments forwarding for blocks
https://bugs.ruby-lang.org/issues/17475#change-89645
* Author: svoop (Sven Schwyn)
* Status: Open
* Priority: Normal
----------------------------------------
In a gem, I create a bunch of initializer shortcuts as follows:
# Shortcut initializers
CLASSES.each do |element, class_name|
define_singleton_method(element) do |*args, **kwargs|
class_name.to_class.new(*args, **kwargs)
end
end
Given the new, cool arguments forwarding with `...`, it would be a real beauty if the following were possible:
# Shortcut initializers
CLASSES.each do |element, class_name|
define_singleton_method(element) do |...|
class_name.to_class.new(...)
end
end
(I'm sorry if this is a duplicate. In some dusty corner of my memory, I believe to have seen a similar issue in the past, but couldn't find it anymore... maybe just dreamt of it. :-)
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>