How to handle git object's struct in Mercury? #757
Replies: 2 comments 3 replies
-
Yes, the name ‘internal’ isn’t very accurate. In fact, Mercury was extracted as a shared dependency for other repositories, and it primarily contains basic data structures. For this reason, most structs in Mercury expose all their members as public. |
Beta Was this translation helpful? Give feedback.
-
As for modifying the current struct, the current implementation of eq is somewhat ambiguous (as it only compares id). Additionally, based on #748 (comment), implementing eq for these structs seems unnecessary at this stage. Therefore, I tend to lean towards removing these redundant derive implementations. |
Beta Was this translation helpful? Give feedback.
-
continue the discussion here #756 (comment)
Beta Was this translation helpful? Give feedback.
All reactions