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

Consistently use pointer receivers for core.Number #375

Merged
merged 1 commit into from
Dec 9, 2019
Merged

Consistently use pointer receivers for core.Number #375

merged 1 commit into from
Dec 9, 2019

Conversation

elsesiy
Copy link
Contributor

@elsesiy elsesiy commented Dec 9, 2019

Change all occurrences of value to pointer receivers
Add meta sys files to .gitignore
Code cleanup e.g.

  • Don't capitalize error statements
  • Fix ignored errors
  • Fix ambiguous variable naming
  • Remove unnecessary type casting
  • Use named params

Fix #306

Change all occurrences of value to pointer receivers
Add meta sys files to .gitignore
Code cleanup e.g.
- Don't capitalize error statements
- Fix ignored errors
- Fix ambiguous variable naming
- Remove unnecessary type casting
- Use named params

Fix #306
@bkielbasa
Copy link

why do you need pointers there? If you don't change the value the pointer is redundant.

@elsesiy
Copy link
Contributor Author

elsesiy commented Dec 9, 2019

This has been extensively discussed in #306 and the decision was to use pointer receivers

Copy link
Contributor

@jmacd jmacd left a comment

Choose a reason for hiding this comment

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

(I would have preferred to see a separate PR for the cleanups, but this is OK.)

@rghetia rghetia merged commit 1ab645f into open-telemetry:master Dec 9, 2019
@elsesiy
Copy link
Contributor Author

elsesiy commented Dec 10, 2019

(I would have preferred to see a separate PR for the cleanups, but this is OK.)

My bad and I agree, this should've been a separate ticket. There's still some more stuff to clean up so I can create a new ticket for that.

@elsesiy elsesiy deleted the feature/306-value-receivers branch December 10, 2019 00:52
@pellared pellared added this to the untracked milestone Nov 8, 2024
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.

Inconsistency with pointer and concrete type recievers
5 participants