计算属性自动检查
This commit is contained in:
+2
-2
@@ -213,9 +213,9 @@ A computed property may itself be read-only while depending on writable fields.
|
||||
|
||||
The computed property does not contain writable storage. However, its read may require a stable snapshot of mutable dependencies.
|
||||
|
||||
`Synchronized_Computed_Accessor` therefore uses a synchronized read view. Writable dependencies must share the computed consistency domain when the computed expression needs an atomic snapshot.
|
||||
Dependencies must be explicit Schema facts. The `Synchronized_Computed_Accessor` read view can access only declared direct dependencies, and the computed property's read slot is derived from the dependency graph instead of requiring its key to be repeated in a synchronization group.
|
||||
|
||||
Read-only stored dependencies are safe to read directly through the synchronized view because they have no managed writer.
|
||||
Writable dependencies that require one atomic snapshot must share one synchronization domain with each other. Read-only stored dependencies are safe to read directly through the synchronized view because they have no managed writer.
|
||||
|
||||
### Rule
|
||||
|
||||
|
||||
Reference in New Issue
Block a user