Why does Scala evaluate the argument for a call-by-name parameter if the method is infix and right-associative?
问题 As I understood call-by-name parameters of a method, the corresponding argument expression will not be evaluated when passing it to the method, but only when (and if) the value of the parameter is used in the method body. In the following example, however, this is only true in the first two method calls, but not in the third one, although it should be a merely syntactical variation of the second case!? Why is the argument expression evaluated in the third method call? (I tested this code