パスワードを忘れた? アカウント作成

soramine (1131) の日記

2001 年 10 月 09 日
午後 08:52

Apocalypse Now 番外編4

 うーん。お役にたてないかもしれないけれど、ボクもちょっとだけでも……

RFC 025: Operators: Multiway comparisons

This RFC proposes that expressions involving multiple chained comparisons should act like mathematician would expect. That is, if you say this:

0 <= $x < 10

it really means something like:

0 <= $x && $x < 10

The $x would only be evaluated once, however. (This is very much like the rewrite rule we use to explain assignment operators such as $x += 3.)

 また例によってよくわからない単語をはっきりさせてみるですね。

RFC 025: Operators: Multiway comparisons

This RFC proposes that expressions involving multiple chained comparisons should act like mathematician would expect. That is, if you say this:

0 <= $x < 10

it really means something like:

0 <= $x && $x < 10

The $x would only be evaluated once, however. (This is very much like the rewrite rule we use to explain assignment operators such as $x += 3.)

■調べた単語
RFC Request For Comments の略。直訳は「コメント求む」
multi- 多い、多数の
way 道、方法
comparison 比べること、比較、類似、たとえること、なぞらえること
propose 提案する、企てる、するつもりである、
expression 表現、言い回し
involve 巻き込む、を必然的に含む、を必要とする
multiple 複合的な、多様の、倍数の
chain 鎖でつなぐ、
evaluate の価値を見極める、数値を出す、を評価する
explain 説明する、弁明する、の原因を説明する
assignment 割り当て、割り当てられた仕事 <あれ、前に調べたような気もしますね

RFCの025番:演算子:比較の多くの方法
このRFCは多様の鎖でつないだ比較が巻き込む表現が数学者の予期したようにふるまうことを提案する。
それは、次のように言う:
0 <= $x < 10 (変数 $x は 0 以上 10 未満である)
それは、他の何かと似たような意味である:
0 <= $x && $x < 10 (変数 $x は 0 以上であり、かつ、変数 $x は 10 未満である)
この(スカラー変数) $x はしかしながら、たった一度評価される。
(これは $x += 3 というような演算子に割り当てられた仕事の説明を用いる再書き込みの決まりにとてもよく似ている。)

 わかったようなわからないような・・・わからないですの(><)。
 ごめんなさい・・・。

開いた括弧は必ず閉じる -- あるプログラマー

処理中...