-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I always found the API for pretty printing a bit awkward to use. This commit tries to improve it: - Two new methods, `BertTerm::write_as_erlang` and `BertTerm::write_as_json` have been added; they accept a parameter that implements io::Write - PrettyPrinter has been renamed to ErlangPrettyPrinter - ErlangPrettyPrinter and JsonPrettyPrinter are no longer public In addition, some improvements have been made in the methods to pretty print. Notably, we've done away with a lot of intermediary allocations.
- Loading branch information
Showing
2 changed files
with
142 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.