-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More Intuitive #10
Comments
Greetings! Thanks for the interest in I think
Thinking more about that, I'm not sure that If I was to redo package currently, I would hide fields behind |
Okay, I was originally trying to express the functionality of this module in a simpler way, but maybe that idea is not the most appropriate. If there is an explanation for this function, it might make it easier for people to understand the functionality of this module. The reason for suggesting this is because I saw the Pair section in c# and thought it might be useful to integrate into this module. |
You can search github.com/siderolabs/talos for ordered. That should good overview of how it used. |
I think you misunderstood my original intention. Your suggestion of implementing the pair and triple functions is good, but it serves a different purpose than what I was originally asking. When searching for Go packages, I came across your implementation of the Pair and Triple functions, which is great for people familiar with object-oriented concepts since they see these as data structures that may contain more than just basic data types, possibly even other structs. However, I wanted to suggest simplifying the module's functionality. While my suggestion may not be the best, looking at the common practices in other languages or other people's implementations may lead to stronger code. |
To elaborate on my earlier point, the I'm not a fan of the public mutable fields in the Don't get me wrong - I'm not trying to discourage you. In fact, we welcome PRs and we even have the |
Perhaps my personal habit is to modify the content of previously designed packages in a timely manner to fit future flexible modifications. Of course, the name and design of each package is a somewhat difficult issue and cannot be modified casually. However, thank you for your response. Currently, I am focusing on using Go to develop games. I have searched for similar things on package platforms with like-minded individuals, so that I can avoid reinventing the wheel as much as possible. However, what I need more is a simple data aggregation structure. Perhaps I will study more deeply when I have a need or interest in the future. Before that, I will summarize the concepts based on my experience and philosophy of using most programming languages and look forward to finding modules that better fit the same concepts in the future. |
Should we change the variable names to 'Item'? This way, it would be more intuitive to know what is inside the 'Pair' or 'Triple' structs. Should we also change the package name to 'PairAndTriple' to make it more straightforward?
The text was updated successfully, but these errors were encountered: