光谱的相关部分是8.6.2 。 它指出:
The compiled representation used for values declared in “let”
bindings in classes is either:
A value that is local to the object constructor (if the value is
not a syntactic function, is not mutable and is not used in any
function or member).
An instance field in the corresponding CLI type (if the value is
not a syntactic function, but is used in some function or member).
A member of the corresponding CLI type (if the value is a
syntactic function).
此外:
Non-function let-bindings that are not used in either the members of
a type or a function binding are optimized away and become values that
are local to the resulting CLI constructor. Likewise, function
bindings are represented as instance members.
我倾向于<代码>let,对私人会员具有约束力,因为它们具有更大的“功能”,即它们强调“什么”而不是“怎样” 汇编者关注最佳汇编形式。