mirror of
https://github.com/status-im/realm-js.git
synced 2025-02-25 12:45:32 +00:00
The main motivation for this is that building error messages via string concatenation is tedious and makes it hard to judge what the actual message looks like when there are a lot of parts being inserted, to the extent that I've been tempted to leave out some potentially useful information because the code was getting unwieldy. It also has some small functional benefits: bools are printed as true/false rather than 1/0, and it is optimized for minimizing the compiled size. Currently it cuts ~30 KB off librealm-object-store.dylib even with the addition of new functionality.