You kind of describe flow based programming (FBP) whereby data is passed to stateless functionality.
Things like Unix pipes, Node-Red and n8n are inspired by FBP.
I agree with what you describe, also reuse is simpler because code tends to be stateless.