An functional notion for signal processing block connections

Here I have a prototype of functional style notation for GNU radio
processing block connections. I wonder if it would be easier to use than
the original
self.connect(…), self.connect(…) - notation.
What do you think about this?

And another thing…
I guess you can imagine and implement some simple rules to optimize the
signal processing flow before it is actually done by using GNU radio
processing blocks.
At it’s simplest form it would mean for example something like:

self.connect(source, gr.add_const_xx, gr.add_const_xx, sink)

self.connect(source, gr.add_const_xx, sink)

Has anyone done something like this for GNU radio already?

  • Pauli Rikula