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

STYLE: Replace tuple with private GlobalObject struct, in SingletonIndex #4424

Conversation

N-Dekker
Copy link
Contributor

@N-Dekker N-Dekker commented Jan 24, 2024

A simple struct appears more readable than an std::tuple, in this case, especially because the struct has a name for each data element (Instance and DeleteFunc), whereas each tuple data element is only accessed by its number.


Inspired by a discussion on std::tuple versus struct, at:

A simple `struct` appears more readable than an `std::tuple`, in this case,
especially because the struct has a name for each data element (`Instance` and
`DeleteFunc`), whereas each tuple data element is only accessed by its number.
@github-actions github-actions bot added area:Core Issues affecting the Core module type:Style Style changes: no logic impact (indentation, comments, naming) labels Jan 24, 2024
@N-Dekker N-Dekker marked this pull request as ready for review January 24, 2024 22:36
@dzenanz dzenanz merged commit 902d1f2 into InsightSoftwareConsortium:master Jan 25, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:Core Issues affecting the Core module type:Style Style changes: no logic impact (indentation, comments, naming)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants