Hello All, I find myself often writing duplicate code just to be able to filter out the objects I want to work with from a collection that has many.
Examples of that can be:
- sending message objects in queue,
- working with multi object type arrays,
- parsing large objects composed of smaller ones,
- and many more...
The duplicated code is almost always the same. It's trying to cast to more specific or more generic, catching the error in case structure and invoking the method im interested in. Being able to perform casting as a part of the teminal would solve the problem with no extra code on the diagram. In the background, the compiler can treat this the same way as cast+case but we wouldn't have to worry about that.
The option could be enabled whenever you try to wire an object in the same hierarchy that does not have that specific method you need, but it's on a different level in the hierarchy.
Please let me know what you think.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any idea that has received less than 2 kudos within 2 years after posting will be automatically declined.