r/programming • • Dec 25 '17

Ruby 2.5.0 Released

https://www.ruby-lang.org/en/news/2017/12/25/ruby-2-5-0-released/
172 Upvotes

18 comments sorted by

View all comments

2

u/Kache Dec 25 '17 edited Dec 25 '17

Been using Hash#map_keys all the time for a while now, sounds like they had considered that name, but nice to see more functional-style methods all the same.

I also like having yield_self functionality when prototyping in console, though my own is the much shorter alias, as. Don't think either are a good idea for readable production code, though.