Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

Version API Method Names #750

Merged
merged 2 commits into from
Jun 14, 2017
Merged

Version API Method Names #750

merged 2 commits into from
Jun 14, 2017

Conversation

jmank88
Copy link
Collaborator

@jmank88 jmank88 commented Jun 14, 2017

What does this do / why do we need it?

This PR proposes name changes for two gps version interface methods, primarily for the sake of readability (based on my experience working towards #431).

  1. The UnpairedVersion interface method Is:
    Old: Is(Revision) PairedVersion
    New: Pair(Revision) PairedVersion
  2. The PairedVersion interface method Underlying:
    Old: Underlying() Revision
    New: Revision() Revision
    Jump to interface declarations

What should your reviewer look out for in this PR?

Reasons not to do this, or more idiomatic name alternatives.

Which issue(s) does this PR fix?

Related to #672 and #431

Copy link
Member

@sdboyer sdboyer left a comment

Choose a reason for hiding this comment

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

yep, i'd call these are an improvement. just waiting on tests...

@sdboyer sdboyer merged commit 75cb241 into golang:master Jun 14, 2017
@sdboyer
Copy link
Member

sdboyer commented Jun 14, 2017

thanks! 🎉

@carolynvs
Copy link
Collaborator

I just stumbled upon this while rebasing a branch. This is a very nice improvement! 👍

@jmank88 jmank88 deleted the version_api branch June 14, 2017 16:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants