Skip to content
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

Change Pair creation code on the Traits src and solution files. #463

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DannyCeb
Copy link
Contributor

@DannyCeb DannyCeb commented Oct 9, 2023

Change the code to use the 'new' associated function instead create the Struct with the curly brackets syntax.

@sunface
Copy link
Owner

sunface commented Oct 21, 2023

Hi, I have a question, why should we use new instead of curly brackets syntax.

@DannyCeb
Copy link
Contributor Author

Hello, thanks for your response
In this case, just because the new function is already implemented for the structure on the sample code and it is not used
In my opinion we can use new() instead bracket syntax or remove the new() function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants