-
Notifications
You must be signed in to change notification settings - Fork 8
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
Is it worthwhile to separate Diffable and Writeable? #8
Comments
Here's another proposal - make
Then the issue is that helpers like Still, this option B would remove the need for |
This interacts with #4, which would get rid of the Another option would be give Diffable an Any other ideas? |
I just pushed some commits that make this a bit cleaner. I still agree it'd be nice to do something cleaner here; writing is a bit of a fly in the ointment. So I'll leave this open a bit for further discussion. But I'm out of ideas at the moment. |
As I was reading the
TODO: better name
onDiffWriteable
, I thought to myself - is there a good reason to separate the interfaces?Unifying them would fix the naming issue, and make the simple use of the API simpler.
On the other hand, there's something I don't like about a "diffable" interface concerning
io.Writer
.The text was updated successfully, but these errors were encountered: