Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

Don't duplicate code for small-error #160

Closed
wants to merge 1 commit into from

Conversation

matklad
Copy link
Contributor

@matklad matklad commented Feb 8, 2018

So, while implementing #159, I've noticed that I have to duplicate docstrings for small-error. I though that maybe we can get rid of this duplication, by separating the Error API (which is the same for both cases) and the implementation (which actually differs). Not sure if it's worth doing this, but at least it seems to work =P

@withoutboats
Copy link
Contributor

Could you nest these inside an error directory with submodules for the two impls?

@matklad
Copy link
Contributor Author

matklad commented Feb 18, 2018

Sure!

@matklad
Copy link
Contributor Author

matklad commented Feb 18, 2018

I would have named submodules impl and impl_small, but impl is a keyword 😒

@withoutboats
Copy link
Contributor

I rebased and fixed this. :-)

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.

2 participants