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

Consider removing the Extensions.Zip() method or make it internal #336

Closed
zvirja opened this issue Nov 2, 2017 · 2 comments
Closed

Consider removing the Extensions.Zip() method or make it internal #336

zvirja opened this issue Nov 2, 2017 · 2 comments

Comments

@zvirja
Copy link
Contributor

zvirja commented Nov 2, 2017

Issue is about the following API:

public static IEnumerable<TResult> Zip<TFirst, TSecond, TResult>(

Currently .NET contains the Zip() API and you don't seem to target .NET 3.5 more. Therefore, consider removing this method from your API or at least make this extension method internal. Otherwise, it always pops-up in completion menu adding a confusion.

Likely, you will be able to do that only in the next major version, but for now you can obsolete it.

Thanks 😉

@dtchepak
Copy link
Member

Thanks @zvirja. :)

I don't think we need to worry about obsoleting; the NSubstitute.Core namespace is for internal stuff only. The public API in NSubstitute parent namespace is the one we try to keep stable.

@zvirja
Copy link
Contributor Author

zvirja commented Nov 20, 2017

Does your project follow the SemVer? If so, you are not permitted to remove methods within the same major. It could happen that somebody downstream used it (e.g. accidentally) and it will become broken after a minor update.. I accidentally noticed the namespace - that is very tricky assumption that somebody pays attention to the namespace the completion suggests 😉

I'd strongly recommend to follow the SemVer and do not violate it, otherwise it would be a hell to depend on this package 😕

dtchepak added a commit that referenced this issue Nov 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants