[Groonga-commit] groonga/groonga at 62430c9 [master] Add a script that checks tiny index limit with parameters

Back to archive index

Kouhei Sutou kou****@clear*****
Thu Aug 18 17:45:38 JST 2016


In <f2605977-6cb3-fae3-f69d-6d84983ba109 �� clear-code.com>
  "Re: [Groonga-commit] groonga/groonga �� 62430c9 [master] Add a script that checks tiny index limit with parameters" on Thu, 18 Aug 2016 17:28:55 +0900,
  Masafumi Yokoyama <yokoyama �� clear-code.com> wrote:

>  > +  ENV["GRN_II_MAX_N_SEGMENTS_TINY"] = max_n_segments&.to_s
>  > +  ENV["GRN_II_MAX_N_CHUNKS_TINY"] = max_n_chunks&.to_s
> 
> ぼっち演算子(&.)が使われているということは、Ruby 
> 2.3以降で動かす前提でしょうか?

そうなりますね!

> スクリプト内の他の箇所ではハッシュロケット(=>)が使われていて、古いRubyを意識しているようにも見えるので、意図的かどうか気になりました。

私、{xxx: "yyy"}が嫌いなんですよ。{xxx: :yyy}のときの見た目
がモヤっとするので。




More information about the Groonga-commit mailing list
Back to archive index