Replacing Debug()/TSDebug() with BufferWriter/bwformat has little benefit. Also, I don’t think adding another formatting interface for strings is something we want to maintain or use.
The main downside, with snprintf(), I see reading the examples is having to keep track of the length and position in the buffer if you are calling snprintf() multiple times. This can be handled writing a simple wrapper around snprintf(), which I have done before in about 20 lines of code. If we want to expose a wrapper around snprintf(), I would be in favor of that. -Bryan > On Apr 19, 2018, at 11:20 AM, Alan Carroll <solidwallofc...@oath.com.INVALID> > wrote: > > I have several pull requests up currently involving updates to output > formatting for BufferWriter. I was asked to provide more detail on the > point of these pulls requests. Anyone who is interested can read this > document - https://solidwallofcode.github.io/buffer-writer.en.html for that > detail.