Skip to content
This repository has been archived by the owner on Apr 18, 2018. It is now read-only.

doc: few additional api stability nits #52

Merged
merged 2 commits into from
Apr 10, 2015
Merged

Conversation

jasnell
Copy link
Member

@jasnell jasnell commented Apr 10, 2015

@jasnell
Copy link
Member Author

jasnell commented Apr 10, 2015

@chrisdickinson

Backwards incompatible changes to *Implicit* APIs that have been included in a Release *should* be handled the same as *Explicit* API changes. However, exception to this rule can be allowed if: (a) the proposed change can be reliably demonstrated to have minimal impact *in practice*, (b) the proposed change is intended to reconcile *implemented* behavior with *documented* behavior (i.e. the documentation says one thing but the code does another and either the code or documentation need to be updated), (c) it is clear that the Implicit API being modified had originally been intended for internal use as part of the underlying implementation as opposed to being targeted at developers, or (d) it can be demonstrated that the Implicit API never worked correctly to begin with.
Backwards incompatible changes to *Implicit* APIs that have been included in a Release *should* be handled the same as *Explicit* API changes. However, exception to this rule can be allowed if the proposed change can be reliably demonstrated to have minimal impact *in practice* and either:

(a) the proposed change reconciles *documented* behavior with *implemented* behavior (i.e. the documentation needs to be updated to accurately reflect how the code actually works);

Choose a reason for hiding this comment

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

I'm a bit confused by this wording – in this case I'd say that our "explicit API" (via the docs) should be changed. Given that explicit APIs are a strict subset of our implicit APIs, docs that lie aren't part of the explicit API, they're just lies :) Generally, we shouldn't change code to match docs, we should change docs to match code.

Copy link
Member Author

Choose a reason for hiding this comment

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

hmm... I think we're saying the same thing just in two different ways.

Choose a reason for hiding this comment

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

AH! Okay, yes, I was definitely misreading that. Disregard. +1000!

@chrisdickinson
Copy link

LGTM!

jasnell added a commit that referenced this pull request Apr 10, 2015
doc: few additional api stability nits
@jasnell jasnell merged commit ae1df66 into master Apr 10, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants