Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.

Conversation

@Garfeild
Copy link
Collaborator

@Garfeild Garfeild commented Jul 5, 2023

Implementation we did during pair programming in the office to introduce KeyedState and its support.

* New protocol is added to define State
* AtomicState is converted to open class with conformance to State protocol
* KeyedState open class is added
* StateEnvironment storage is updated to store different types of states
* Instead of storing states by ObjectIdentifier, we defined new key
  based on type of state
* New getProperty to access state with keyPath and identifier
* New subscript to access state from storage
* Adding new set fuction to support KeyedState
* Adding new assert function to support KeyedState
@Garfeild Garfeild requested a review from MaximBazarov July 5, 2023 07:37
Copy link
Owner

@MaximBazarov MaximBazarov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like that organization idea!

@Garfeild Garfeild merged commit 6fa1601 into main Jul 5, 2023
@Garfeild Garfeild deleted the add-keyed-state branch July 5, 2023 07:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants