-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[write-fonts] Improve validation API
This significantly reduces indent drift when dealing with arrays; where previously you needed to indent 1) to start an array, 2) to manually loop and 3) to declare each item, we now have a single method that lets you pass in an iterator and a closure to be called on each item, and we handle the rest. The diff shows that this is significantly less painful.
- Loading branch information
Showing
2 changed files
with
69 additions
and
58 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
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