[#42369] [BUG: trunk] Lazy sweep and ObjectSpace.each_object — SASADA Koichi <ko1@...>

 ささだです。

14 messages 2010/10/13

[#42375] [Ruby 1.9-Feature#3946][Open] Array#packのqQ指定子に機種依存サイズフラグ!を追加 — Yui NARUSE <redmine@...>

Feature #3946: Array#packのqQ指定子に機種依存サイズフラグ!を追加

19 messages 2010/10/14
[#42380] Re: [Ruby 1.9-Feature#3946][Open] Array#packのqQ指定子に機種依存サイズフラグ!を追加 — Tanaka Akira <akr@...> 2010/10/14

2010年10月14日15:36 Yui NARUSE <redmine@ruby-lang.org>:

[#42381] Re: [Ruby 1.9-Feature#3946][Open] Array#packのqQ指定子に機種依存サイズフラグ!を追加 — "NARUSE, Yui" <naruse@...> 2010/10/14

(2010/10/14 21:07), Tanaka Akira wrote:

[#42619] [Ruby 1.9-Feature#3946][Open] Array#packのqQ指定子に機種依存サイズフラグ!を追加 — Usaku NAKAMURA <redmine@...> 2010/11/25

チケット #3946 が更新されました。 (by Usaku NAKAMURA)

[#42376] [Ruby 1.9-Feature#3947][Open] Array#packのにエンディアン指定修飾子</>を追加 — Yui NARUSE <redmine@...>

Feature #3947: Array#packのにエンディアン指定修飾子</>を追加

9 messages 2010/10/14

[#42464] [Ruby 1.9-Bug#3990][Assigned] tests of rexml/rss reports many errors and failures without iconv — Usaku NAKAMURA <redmine@...>

Bug #3990: tests of rexml/rss reports many errors and failures without iconv

40 messages 2010/10/27
[#42500] [Ruby 1.9-Bug#3990][Closed] tests of rexml/rss reports many errors and failures without iconv — Kouhei Sutou <redmine@...> 2010/10/30

チケット #3990 が更新されました。 (by Kouhei Sutou)

[#42510] Re: [Ruby 1.9-Bug#3990][Closed] tests of rexml/rss reports many errors and failures without iconv — "NARUSE, Yui" <naruse@...> 2010/11/01

成瀬です。

[#42514] Re: [Ruby 1.9-Bug#3990][Closed] tests of rexml/rss reports many errors and failures without iconv — Kouhei Sutou <kou@...> 2010/11/02

須藤です。

[#42515] Re: [Ruby 1.9-Bug#3990][Closed] tests of rexml/rss reports many errors and failures without iconv — "NARUSE, Yui" <naruse@...> 2010/11/02

(2010/11/02 21:50), Kouhei Sutou wrote:

[#42516] Re: [Ruby 1.9-Bug#3990][Closed] tests of rexml/rss reports many errors and failures without iconv — Kouhei Sutou <kou@...> 2010/11/02

須藤です。

[#42517] Re: [Ruby 1.9-Bug#3990][Closed] tests of rexml/rss reports many errors and failures without iconv — "NARUSE, Yui" <naruse@...> 2010/11/02

成瀬です。

[#42518] Re: [Ruby 1.9-Bug#3990][Closed] tests of rexml/rss reports many errors and failures without iconv — Kouhei Sutou <kou@...> 2010/11/02

須藤です。

[#42519] Re: [Ruby 1.9-Bug#3990][Closed] tests of rexml/rss reports many errors and failures without iconv — "NARUSE, Yui" <naruse@...> 2010/11/03

成瀬です。

[#42543] Re: [Ruby 1.9-Bug#3990][Closed] tests of rexml/rss reports many errors and failures without iconv — Kouhei Sutou <kou@...> 2010/11/06

須藤です。

[#42548] Re: [Ruby 1.9-Bug#3990][Closed] tests of rexml/rss reports many errors and failures without iconv — "NARUSE, Yui" <naruse@...> 2010/11/07

(2010/11/06 12:10), Kouhei Sutou wrote:

[#42549] Re: [Ruby 1.9-Bug#3990][Closed] tests of rexml/rss reports many errors and failures without iconv — Kouhei Sutou <kou@...> 2010/11/07

須藤です。

[#42572] Re: [Ruby 1.9-Bug#3990][Closed] tests of rexml/rss reports many errors and failures without iconv — "NARUSE, Yui" <naruse@...> 2010/11/13

成瀬です。

[#42592] Re: [Ruby 1.9-Bug#3990][Closed] tests of rexml/rss reports many errors and failures without iconv — Kouhei Sutou <kou@...> 2010/11/18

須藤です。

[#42593] Re: [Ruby 1.9-Bug#3990][Closed] tests of rexml/rss reports many errors and failures without iconv — "NARUSE, Yui" <naruse@...> 2010/11/18

成瀬です。

[#42607] Re: [Ruby 1.9-Bug#3990][Closed] tests of rexml/rss reports many errors and failures without iconv — Kouhei Sutou <kou@...> 2010/11/20

須藤です。

[#42608] Re: [Ruby 1.9-Bug#3990][Closed] tests of rexml/rss reports many errors and failures without iconv — "NARUSE, Yui" <naruse@...> 2010/11/20

成瀬です。

[#42610] Re: [Ruby 1.9-Bug#3990][Closed] tests of rexml/rss reports many errors and failures without iconv — Kouhei Sutou <kou@...> 2010/11/20

須藤です。

[#42611] Re: [Ruby 1.9-Bug#3990][Closed] tests of rexml/rss reports many errors and failures without iconv — "NARUSE, Yui" <naruse@...> 2010/11/20

成瀬です。

[#42613] Re: [Ruby 1.9-Bug#3990][Closed] tests of rexml/rss reports many errors and failures without iconv — Kouhei Sutou <kou@...> 2010/11/21

須藤です。

[#42614] Re: [Ruby 1.9-Bug#3990][Closed] tests of rexml/rss reports many errors and failures without iconv — "NARUSE, Yui" <naruse@...> 2010/11/21

成瀬です。

[ruby-dev:42326] Re: Introducing "rb_scan_keyword_args()" (was Re: Re: Enhancing Numeric#step)

From: "Akinori MUSHA" <knu@...>
Date: 2010-10-01 04:31:20 UTC
List: ruby-dev #42326
At Thu, 30 Sep 2010 23:45:05 +0900,
matz wrote:
>
> まつもと ゆきひろです
>
> In message "Re: [ruby-dev:42318] Re: Introducing "rb_scan_keyword_args()" (was Re:  Re: Enhancing Numeric#step)"
>     on Thu, 30 Sep 2010 13:47:57 +0900, "Akinori MUSHA" <knu@iDaemons.org> writes:
>
> |>  * シンボルでなく文字列
> |>  * 文字列末尾に:がついていたらoptional
> |>    または文字列末尾に!がついていたらmandatory
> |
> | 末尾でなく先頭の方が望ましそうです。識別子の末尾にも!が置ける
> |ので(「method(x!:1)」も文法的に有効)曖昧さが生じます。
>
> 記法的には後ろに書いた方が気分がよいのですが、先頭に置くので
> も妥協できます。っていうか、Rubyレベルではmandatoryなキーワー
> ド引数を指定する構文を考えていないんですが、それってことは、
> つまりrb_scan_keyword_argsでも対応不要ってことなのではないか
> と今さらながら思いました。

 私の想定はすでに提示していますが、順序引数と同じでデフォルト値を
指定しなかったら必須でいいのではないでしょうか。

> | ちなみに、私が最初に考えていた記法は次のようなもので、動的生成の
> |便宜や rb_intern() のコストを考えないならこちらの方が書きやすく、
> |わかりやすそうに思えます。
> |
> |    /* セミコロンはmandatoryとoptionalの区切り */
> |    rb_scan_keywords(&opt, "x,y;color,size,*", &x, &y, &color, &size, &rest)
> |
> |もしかしてまつもとさんにはこれならacceptableだったりしますか?
>
> なぜoptではなく&optなのかとか、疑問はあったりしますが、こちら

 誤記でした。

> の方が([ruby-dev:42305]案よりは)わかりやすかろうとは思います。
> ただし、記法としては私のもの[ruby-dev:42307]の方が好みです。
> なぜかと考えた時に、"x,y;color,size,*"と指定することによる分
> かりやすさの向上と文字列をを構文解析するコストが見合っていな
> いように感じるからのように思えます。

 このコスト感をどうも私は共有できないんですよね…。末尾に ! を
置くと必須引数とするという仕様もやはり文字走査と切り出しが前提
なので、コスト面での差はあまりないと思うのです。

--
Akinori MUSHA / http://akinori.org/

In This Thread

Prev Next