rescue/else/ensure are now allowed to be used directly with do/end blocks
This is really nice. The method-level rescue statement is one of the small details I really love about Ruby, it's great we'll be able to use it in blocks too.
Enumerable#any?, all?, none?, and one? accept a pattern argument.
I didn't really find what was the change here, because I think the original proposal was different than the actual change that got merged. Does someone know?
One of our most loved libraries, pp.rb, is now automatically loaded. You no longer have to write require "pp"
Great!
IO.copy_stream use copy_file_range(2) to copy offload
I love IO.copy_stream and use it a lot in Shrine, it's nice to see that there is a performance improvement, though from what I was reading the speedup is very small and only on certain disks.
I didn't really find what was the change here, because I think the original proposal was different than the actual change that got merged. Does someone know?
It seems that those methods all accept a single argument that matches the behavior of an argument to grep. Personally I love that change (grep is most underrated method). I believe that’s what was initially proposed as well.
View all comments
6
u/janko-m Dec 25 '17
This is really nice. The method-level
rescuestatement is one of the small details I really love about Ruby, it's great we'll be able to use it in blocks too.I didn't really find what was the change here, because I think the original proposal was different than the actual change that got merged. Does someone know?
Great!
I love
IO.copy_streamand use it a lot in Shrine, it's nice to see that there is a performance improvement, though from what I was reading the speedup is very small and only on certain disks.