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

Remove "Type" from TCoordinateType template parameters, remove initial "T" from TCoordinateType alias #5016

Conversation

N-Dekker
Copy link
Contributor

@N-Dekker N-Dekker commented Dec 5, 2024

The postfix Type is unnecessary for a template parameter TCoordinateType, because its initial T already indicates that it is a type.

On the other hand, a type alias (typedef) "typically" has a Type postfix, but should not have a T initial.

Triggered by a comment from Jon (@jhlegarreta) at #4995 (comment)

The postfix `Type` is unnecessary for a template parameter, because the prefix
letter `T` already indicates that it is a type.
The postfix `Type` is unnecessary for a template parameter, because the prefix
letter `T` already indicates that it is a type.
Made the template parameter names in the header files (itk*.h) consistent with
the corresponding implementation (itk*.hxx).
In general, `TCoordinate` is used to denote the name of a template parameter for
a coordinate type.
In general, we only use the `T` prefix for template parameters, not for aliases.
@github-actions github-actions bot added type:Testing Ensure that the purpose of a class is met/the results on a wide set of test cases are correct area:Core Issues affecting the Core module area:Filtering Issues affecting the Filtering module area:Segmentation Issues affecting the Segmentation module labels Dec 5, 2024
Copy link
Member

@hjmjohnson hjmjohnson left a comment

Choose a reason for hiding this comment

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

LGTM

@hjmjohnson
Copy link
Member

FYI: FYI: Github actions is having issues: actions/runner#3611

Copy link
Member

@jhlegarreta jhlegarreta left a comment

Choose a reason for hiding this comment

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

Thanks for doing this, Niels.

@N-Dekker N-Dekker marked this pull request as ready for review December 5, 2024 14:33
@jhlegarreta jhlegarreta merged commit 39f5687 into InsightSoftwareConsortium:master Dec 5, 2024
17 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 area:Filtering Issues affecting the Filtering module area:Segmentation Issues affecting the Segmentation module type:Testing Ensure that the purpose of a class is met/the results on a wide set of test cases are correct
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants