3 ms·
I'm torn over these mini dsls that creep into code like printf and regex formatting strings. They are so useful, but so often a cause of bugs. Any solution to
by jnordwick 9y ago
I'm torn over these mini dsls that creep into code like printf and regex formatting strings. They are so useful, but so often a cause of bugs.
Any solution to then I've seen like doing them entirely in code (c++ io streams or many of the various regex builders) seen to overshoot too far in the safety direction and destroy their quickness and usability.
There has to be a better way to print stuff out that is useable in languages like C and Java without blowing the budget on code length, object creation, etc.
I once once wrote a zero garbage logging library for high performance java code and i just defaulted to essentially copying into a buffer.