langsmith:293
From: Dan Kogai <dankogai dan.co.jp>
Date: Thu, 15 Sep 2005 20:17:13 +0900
Subject: [langsmith:293] なぜ代入演算子に限ってright associativeなのか?
弾です。 blogにも書いた(http://blog.livedoor.jp/dankogai/archives/ 50084596.html)のですが、なぜほとんどの言語で、代入演算子に限って left associative なのでしょうかねえ? perlの場合、二項演算 子で right associative なのは、= (+=などを含 む)を除くと ** ぐらいです。**がright associativeなのはまだわかるのですが.... 全体の流れが左から右なのに、なんか違和感を感じるのは私だけでしょ うか? Pseudocodeではよく value → variable と書いている例を見かけるのになんででしょうかねえ? Dan the Associative Man -- ML: langsmith quickml.atdot.net 使い方: http://www.atdot.net/~ko1/quickml
-> 293 2005-09-15 20:17 [dankogai dan.co.jp ] なぜ代入演算子に限ってright associativeなのか? 294 2005-09-15 21:01 ┣[maeda-langsmith atus] 296 2005-09-15 22:40 ┃┗[dankogai dan.co.jp ] 297 2005-09-16 09:47 ┃ ┣[takuo aya.or.jp ] 298 2005-09-16 12:06 ┃ ┃┗[maeda-langsmith atus] 299 2005-09-16 12:37 ┃ ┗[maeda-langsmith atus] 295 2005-09-15 21:38 ┗[shiro lava.net ]