Spooky control flow with Format.kasprintf & friends

Your k value is a function here (that you return at the end of the function) it’s not being called. Then Format.flush_str_formatter () is called before you return k and thus before it gets called.

Btw. happy about hearing your thoughts on structured logging and Logs in Implement support for Message Templates · Issue #47 · dbuenzli/logs · GitHub

1 Like