dpnmn
I pay approx ā¬80 a month for a complete accounting/payment system, including Peppol-access, payrolls, expenses etc etc .
I actually think Peppol-invoices are free. I just choose that instead of e-mail (assuming my customer is an official company).
It is automatically transferring the invoice-data to my bank which is expensive (and that too I can fix by changing bank...)
So, all in all, Peppol is a good thing. Making it mandatory is perhaps a bit over the top, but hey.
Most businesses will use a accounting system anyway, and most of those will support Peppol out-of-the-box. So instead (or in addition) to sending an e-mail, the invoice will be sent directly into their accounting system (and their bank, if they choose).
Really, it simplifies things a lot! No more punching/copying of stuff from PDFs into your online bank. The cost is not really high, just a bit annoying (typically some euros a month + a few euros pr invoice).
(I probably could have found a cheaper provider but I don't send many invoices so it is ok).
But the comment was about your examples, and they are not great - they appear to be created to show how useless or overcomplicated DI is. And it is overcomplicated - in your toy examples.
However, there are plenty of better examples on the net of the benefits of DI, but in order to actually show any usefulness they either have to be large, or depend on the readers to "extrapolate" to larger/more complicated code bases.