-
Notifications
You must be signed in to change notification settings - Fork 10
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
Fixes #35 and #36, other special cases, and adds 100% test coverage #37
Conversation
Hi, a couple of updates, I decided to just exhaustively address all of the special cases listed for |
Hi! And thanks for the PR. Just a heads up that I probably won't be able to review this for a few more days. My plan is to convert the repo to use go modules, tag a A few preliminary observation:
|
Sure, all points understood. Upon discovering the issues with Specific points:
Anyway, thanks again for your detailed response and this very useful package! |
it is great I use it for personal reasons!
…On Tue, 23 Apr 2019, 19:53 Vaughn Iverson, ***@***.***> wrote:
Sure, all points understood. Upon discovering the issues with Pow I
honestly expected I'd need to maintain my own vendored fork of this
package. Is was only after-the-fact that I decided to throw up a PR just in
case you were still interested in maintaining this. Obviously feel free to
cherry pick whatever you find to be useful, or reject the whole thing and
do it however you want. I generally err on the side of sharing more code
rather than holding it back because it "may not be good enough".
Specific points:
1.
Yes, as a package maintainer myself: simple, single topic PRs are
ideal. But we don't always get ideal! ;-)
2.
I agree with not being pedantic about lint output, especially in my
own standalone project code. However, for public packages, I generally
assume that zero warnings and 100% coverage are considered desirable,
unless the contribution guidelines for a package state otherwise. Since
this package has no documented guidelines, my default applied.
3.
I understand your position, there are good arguments on both sides of
this. It's your package, so you can do what you want! It is definitely
annoying to test a fork this way, but more seriously it's pretty dangerous
because it's possible to make a badly breaking change to a fork, and not
quickly detect it (the whole point of unit tests!), because without
realizing it you aren't actually testing the modifications made in the
fork! It would be very easy to generate a simple PR that is super buggy,
but "all of the tests pass!" Generally speaking, these kinds of "broken by
default" situations are best avoided, especially in open-source development.
Anyway, thanks again for your detailed response and this very useful
package!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#37 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAAGLS4FI3SHWVCDLFJWC23PR5LJNANCNFSM4HGEIC2A>
.
|
Closing long dormant PR. |
HI, I decided to just do this, fixing #35 and #36. Hope you find it valuable.
I tried to keep things as much as possible in the same style, etc. I did need to generalize the test suite a bit because it was previously hard-coded to use "ALTree/bigfloat" which complicated testing the fork in preparation to open the PR. There were a couple of minor changes to get lint to return no warnings, and added tests for both the issue fixes and to reach 100% coverage. I also added an ErrNaN type to mirror what the
math/big
library itself provides.Best, Vaughn