-
-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RecordFormatter: support %a; formatter&reader: support 'bool'
Attributes are special in that there is no obvious way to print them: a single record has many attributes that all mean different things. We instead add a required formatting specification that selects which attribute to print. The specification can have ; to separate _how_ to print the attribute. We also support formatting booleans as 'true' or 'false', and reading 'true' as 1 and 'false' as 0. The reading is a bit complicated and uses some weird closure. The code is ..a bit ugly.. but it is fun and tested.
- Loading branch information
Showing
2 changed files
with
296 additions
and
8 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.