c语言中,写注释的时候,想说明状态,用state还是用status表示状态?

c语言中,写注释的时候,想说明状态,用state还是用status表示状态?

state, condition也行。我觉得既然有state machine structure,标志位就应该是state。

===以下来源于网络===

以 Recordset 为例

Recordset 具有 Status 和 State 属性,说明二者还是有区别的。

Recordset.Status 表示进行批处理后,当前记录的情况。结果有:操作被取消,结果未被保存;记录被锁无法保存……

Recordset.State 表示 Recordset 对象是打开的,还是关闭的,还是正在执行异步操作。

=

State generally refers to the entire state of an entity - all its values and relationships at a particular point in time (usually, current)

Status is more of a time-point, say, where something is at in a process or workflow - is it dirty (therefore requiring saving), is it complete, is it pending input, etc

=

Typically I will use State to mean the current condition of an object or the system as a whole. I use status to represent the outcome of some action. For example, the state of an object may be saved/unsaved, valid/invalid. The status (outcome) of a method is successful/unsuccessful/error.