Dominique Devienne wrote:
On Fri, Oct 25, 2024 at 2:43 PM Julien Blanc via Boost
wrote: 2 octobre 2024 à 18:51 "Christian Mazakas via Boost"
a écrit: I think there's a lot of utility in MQTT, but what I'd like to see in the future for libraries like these is a first-class interface _without_ I/O.
I'm surprised that this remark did not raise more reaction. I'd like to put a very big +1 on what Christian said.
FWIW, that's also what went through my mind reading Christian. And I was surprised when Vinnie didn't jump on this, since he's adverstised his own libraries going in that direction as well.
And even though I have no skin in this game, since I'm only on ASIO-supported OSes, and not in the MQTT target market, I think Christian makes a very good point.
Designing for testability is always something I strive for, in my own libs. --DD
It is, however, significantly harder to design sans-io libraries than it is ones where the I/O layer is fixed and known. If we reject all libraries of the second persuasion, we may not get any of the first one, and we'll be left with nothing.