Yukihiro Matsumoto wrote: > I like the idea. My remaining concern is ".?" is too similar to "?." which is chosen by other languages. > ... I agree with this concern. I also agree with the idea of trying to make it more like a tradition...wycats (Yehuda Katz)
I would like to suggest a phased transition across several releases in Ruby 2.x (the specific version numbers and flag names are just examples): 1. In Ruby 2.3, it is possible to turn on warnings when mutating a String literal (--warn...wycats (Yehuda Katz)
When a thread has paused fibers, if an exception occurs anywhere in the thread, `ensure` blocks in the paused fibers do not execute. The effect of this is that block-scoped resources (like File.open, Mutex#synchronize, ActiveRecord tr...wycats (Yehuda Katz)
This code: ENV["HOME"] allocates three T_STRING according to ObjectSpace.count_objects. Unless I'm missing something, it should only need to allocate one string.wycats (Yehuda Katz)
This case: x = "world" y = :"hello#{world}!" allocates one T_STRING according to ObjectSpace.count_objects. Since all of the concatenation happens as part of the symbol generation, it shouldn't be necessary to create a Ruby st...wycats (Yehuda Katz)
You could imagine writing code that calls into a user-supplied hook: log("App booted", level: :info) It is possible for both Ruby 1.9 and Ruby 2.0 users to write such a hook: # Ruby 1.9 def log(string, options={}) le...wycats (Yehuda Katz)
This works: def hello puts "hello" end hello(*[]) This does not: def hello puts "hello" end hello(**{}) I may be misunderstanding the idea behind the keyword arguments, but I would expect them to...wycats (Yehuda Katz)
This works: def foo(*) end This does not: def foo(**) end This does not: def foo(*, **) end I use bare `*` often in combination with bare `super` to extend a superclass without being brittle to its exact ...wycats (Yehuda Katz)
Thanks mpapis for moving the ball forward on this. I rely on --enable-load-relative for Tokaido, and getting/keeping it working reliably will make me very happy.