-
-
Notifications
You must be signed in to change notification settings - Fork 326
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
Any reason for not having a common interface between feedbacks and observers? #2677
Comments
How would that look in practice? The only question might be if the strict separation of observers and feedbacks makes sense since they are closely related. Would love to hear your suggestions :) |
The thing is, one feedback can work with multiple observers, so how about add a method like As far as the feedback and observers design choice, I totally agree with it. Feedbacks are data processors and observers are gatherers. Clearly it is a many-to-many relationship and therefore having them as separate entities is absolutely necessary. Having said that, I think, the common What say? |
I don't really get where/how the example would fit in, sorry(?) |
Say we change the interface to observers pub trait Observer{
.... <already existing stuff>
type obs_to_return; // could be things like vectors, lists, time, ...
fn get_observations() -> Self::obs_to_return;
} Now Off the top of my head, I do not see an issue with this. |
Can't you already just add another trait like |
Like, I'm not saying it isn't a good idea, I just don't fully understand it. If you want/have time, you can do a proof of concept? |
Sorry for the late reply -- its ok -- let me whip up a small POC !! |
I see 4 types of relations between the feedbacks and observers
That is to say that there is no solid interface between the feedbacks and the observers, also as per the paper.
Have you thought about standardizing this interface, or are there any super dauting challenges?
The way I see it, the only visible difference amongst Observers is their output.
So is it not a better option to have a standardized interface that outputs a generic instead?
Maybe I am not seeing something you guys have seen before. If so, would love a conversation on it.
The text was updated successfully, but these errors were encountered: