Ruby 2.0 发布了第二个 RC 版本,这也将是最后一个 RC 版本,正式版不远了哦。
下载地址:ftp://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-rc2.tar.bz2
Ruby 2.0 RC2 主要新特性:
Keyword arguments
Enumerable#lazy
Module#prepend
#to_h: Convention for conversion to Hash
%i: a literal for symbol array
Updated regexp engine: Onigmo (a fork of Oniguruma)
Enumerator#size and Range#size were introduced
DTrace support
TracePoint
Optimized require performance (especially, on Windows)
NativeClient support
Documentation improvement
Enhanced asynchronous interrupt handling
Launch-time stack size tuning parameters
Refinements [experimental]
来自:开源中国社区

