-
|
What I would have expected is that it worked something like this pseudo-csharp: However instead the same progressive iteration is used for both Why is this so weird? Or do I fundamentally misunderstand something about how to use the transform factories? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It's important to distinguish between "invalid data" and "data that doesn't apply to this factory".
So you don't have to reimplement |
Beta Was this translation helpful? Give feedback.
It's important to distinguish between "invalid data" and "data that doesn't apply to this factory".
Validatedoes two things:bool)Buildshould check whether the values apply to this factory, and if yes, do something interesting.YARP won't call
Buildif the factory applies, but the input is invalid.So you don't have to reimplement
Validateinstead ofBuild- you can choose to assume that inputs are already valid. You do still have to check if the factory applies at …