-
Notifications
You must be signed in to change notification settings - Fork 170
Add Connectable instance for connecting ReadOnly to WriteOnly #756
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
Conversation
a265bfd to
bc8f829
Compare
|
I'm not sure about this instance. The interfaces don't have handshaking, so it's unclear what is an allowable way to connect them -- I'd rather not have this instance and thus require the user to manually write the rule connecting them, to force the user to know what they're doing. At the very least, I would want the rule in this instance to have the attribute |
bc8f829 to
a068acb
Compare
|
I pushed an updated branch with I appreciate the point about lack of handshaking, however there are My thought is that there is a simple and obvious way to connect Feel free to drop it if you don't think it belongs; it's easy enough |
|
Connecting Let me discuss with others and see what they think. I'm still tempted to not accept it. If you put this in your own project, I would suggest making it a function/module that is only in scope where you need it, rather than making it a Connectable instance, which is always exported from your package. For example, instead of calling That's assuming that you don't want to just inline the rule wherever you'd put |
|
If I keep it in my project, I can adjust the type to be more specific The reason I don't simply connect the wires directly is that the |
|
I talked with Nikhil and I've come around to the idea (that he pointed out and which you also said) that Connectable provides one way of connecting, though some types might have multiple ways of connecting them, and if the user wants another way than what the Connectable instance provides, then the user has to go with something else. So I've come around to being OK with adding instance for ReadOnly and WriteOnly. Both Nikhil and I think the instance should have both attributes, "fire_when_enabled" and "no_implicit_conditions". The PR currently just has the first one; do you have an objection to adding the second attribute? If you add that, I'll merge it. We also figure that the other similar instances should also have those attributes, but we can do that in a later, separate PR. |
a068acb to
6142fbd
Compare
|
no_implicit_conditions is fine with me. I updated the branch with |
6142fbd to
8238727
Compare
No description provided.