Java:定义术语初始化、声明和赋值
2022-08-31 23:44:13
我发现 defs 是圆形的,主语由动词定义,但动词是未定义的!那么,您如何定义它们呢?
循环定义
初始化:初始化变量。它可以在声明时完成。
赋值:为变量赋值。它可以在任何地方完成,只有一次使用最终标识符。
声明:向变量声明值。
[更新,尝试使用 lambda 计算来理解该主题]
D(x type) = (λx.x is declared with type)
A(y D(x type)) = (λy.y is assigned to D(x type))
%Then after some beta reductions we get initialization.
D(x type) me human // "me" declared with type "human"
A(y (D(x type) me human)) asking // "asking" assigned to the last declaration
%if the last two statemets are valid, an initialization exists. Right?