Skip to content

Built-in commutativity checker #2

Description

@lukaskubanek

Since commutativity is a core property of MRDTs, the library should help users verify that their merge options produce commutative results.

  public enum MRDTCommutativityChecker {
      public static func enable() {}
      public static func disable() {}
  }

When enabled, each conformance performs the merge in both directions and triggers an assertionFailure if the results differ. When disabled (the default), no checking happens and there is no runtime cost.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions