(serveMQTT ...)
(serveMQTT ...)
(serveMQTT ...)
(serveMQTTDoc ...)
With serveMQTT as a macro, we could store each mqtt topic, accepted args, etc ... into a compile-time datastructure. serveMQTTDoc, a macro too, would fetch the content of this datastructure, generate the documentation string for all mqtt topics at compile time, and return this string at run-time when queried.Compile-time state and a language that is also its own macro-language. That'd be a nice thing to have.