[rhg-discussion] The rest of chapter 2
Clifford Caoile
piyokun at gmail.com
Tue Mar 21 16:49:11 EST 2006
On 3/22/06, Jim Driscoll <j at rjimlad.org> wrote:
> However, the section:
>
> `ifnone` is the value when a key does not have an attached value, its
> default
> is `nil`. `iter_lev` is to make the hashtable reentrant (multithread
> safe).
>
> ...seems wrong to me. It should be talking about if the key does not
> exist, surely? Because if it exists and has a nominally undefined
> value, it should return that, not the default.
>From the original: `ifnone`は対応付けられていなかったキーを検索したときの値で、デフォルトは
`nil`。`iter_lev`はハッシュテーブル自体をリエントラント(マルチスレッドセー
フ)にするための仕掛けである。
I believe this sentence is explaining this API:
Hash#{default,default=,default_proc}
> Anyway, patch follows for the (translation) problems I could easily
> find in the rest of the chapter.
I think all of the corrections you are making are spot on and make the
english flow better. +1
Best regards,
Clifford Caoile
--
http://piyokun.GooglePages.com
More information about the rhg-discussion
mailing list