-
Notifications
You must be signed in to change notification settings - Fork 654
BREAKING(http): rename Entity
to ETagSource
and calculate()
to eTag()
#5144
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
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5144 +/- ##
=======================================
Coverage 96.33% 96.33%
=======================================
Files 458 458
Lines 37767 37767
Branches 5576 5576
=======================================
Hits 36383 36383
Misses 1341 1341
Partials 43 43 ☔ View full report in Codecov by Sentry. |
Web APIs have the convention of using a verb first for functions. |
We have many examples of functions which have the noun as its name:
I don't think we have this convention in std. |
Valid point, though I think just calling it |
It feels common to name the function as its returned thing. The above std functions are the examples of such naming convention. I can also find many Web APIs named in that way:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What's changed
The
Entity
interface has been renamedETagSource
, andcalculate()
has been renamedeTag()
.Why these changes were made
These changes were made to better describe the purposes of these symbols. Previously, their names were too generic for their purposes to be immediately clear.
Migration guide
To migrate, use the
ETagSource
interface instead ofEntity
andeTag()
instead ofcalculate()
.Related
Closes #5141
Closes #5140