Suggested adjustment for function output

Good afternoon Tulip community!

I have a suggestion for changing the way Tulip function outputs are displayed and selected.

The current scheme I feel leaves a lot of redundancy in the way it must be configured. We select outputs but then assign the outputs data sources in the end when the function returns.
This means we need to do the work to create two variables for every function output, as well as fill out a form assigning their values to each other in the return block.

Since the function already requires all outputs to be assigned, I think it’s implicit that the function will always return all outputs.
It would save us all some work if the outputs behaved as variables that could be modified during execution. Just make it so all assets with an “output” flag get returned in the end. No need to assign data sources in the return block. To be extra convenient, you could just list all the blocks where the outputs get modified and require them all to be modified at least once by the return.

Hey @enewton , appreciate the write-up. We talked this one through and it’s not something we plan to change right now. Apps store function inputs and outputs by position, so changing how outputs work risks breaking bindings in apps that already use the function. We’d rather fix that underlying problem before reworking outputs. I’ll leave this open so others can weigh in.

That makes sense, thank you for your reply.