Ruby 2.0.0 preview1 發布
Ruby是一種跨平臺、面向對象的動態類型編程語言。Ruby 體現了表達的一致性和簡單性,它不僅是一門編程語言,更是表達想法的一種簡練方式。
我們很高興地宣布發布了Ruby2.0.0-preview1。 在Ruby 2.0最終版發布之前,可以先下載看一下它的新特性:
http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-preview1.tar.bz2 SIZE: 10309440 bytes MD5: 47a0f662f0e258aa1c5e429c310861b3 SHA256: 79e5605003bf6766fbd123ce00a0027df716ba6d28494c35185909f7e61a5bdf
http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-preview1.tar.gz SIZE: 12937316 bytes MD5: c7d73f3ddb6d25e7733626ddbad04158 SHA256: 94b585560c05cb40fadd03e675bd3beb8271c2e976b45644cc765bf854cfd80c
http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-preview1.zip SIZE: 14470260 bytes MD5: 4adb51aa69b56b81c81a8c5f892689cf SHA256: c327f3d91ed7033790244d5b263d7b346f3d8efe808079f5a598507fad90ee6e
在2.0.0中將會有以下新的特性:
- Refinements
- Keyword arguments
- Enumerator#lazy
- Module#prepend
- Converting convention to Hash: #to_h
- %i: a literal for symbol array
- 正則表達式引擎更改為 Onigmo
- DTrace 支持
..更多的改進。有關詳細信息,請參閱新聞。
不幸的是,沒有介紹文檔。 (如果你自愿寫和提供,我們可能會引用或參考在未來的發行公告。)
目標
所有的Ruby用戶,尤其是下面的人都強烈建議提供您發現的任何反饋意見。
- All developers who want to make your products "2.0 ready".
- Those who proposed 2.0 features.
- Ruby committers.
注意
一些 2.0 的特性還沒有實現 尤其是,我們計劃更新 Rubygems, Rdoc and Rake. DTrace 支持還沒有包含在preview1中; 將在preview2看到。
6670: str.chars.last should be possible
3346: DIR revisited
3731: Easier Embedding API for Ruby
1586: Including a module already present in ancestors should not be ignored
2294: [PATCH] ruby_bind_stack() to embed Ruby in coroutine
1952: cannot stop with Ctrl+C
2255: unicode parameters cannot be passed to ruby
如果你知道我們所接受的特性,但沒有實現的其他功能,請告知我們。
stdlib Syck 已經完全用Psych代替, 如果你使用YAML需要用到libyaml.
我們已經采取了相當謹慎在源代碼級別兼容1.9。我們相信,所有的“正常”程序無需修改。 所以,請試用一下,如果你的程序有問題,請報告。
大致的日程安排
- 在十二月初: 2.0.0-preview2
- 在圣誕節期間: code freeze
- 在新年前后: 2.0.0-rc1
- 明年在二月初: 2.0.0-rc2
- 明年2月24日: 2.0.0-p0</pre>