-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try to improve readability. This commit keeps the `configlet info` output the same on every track, and does not affect performance. Summary: - Inline the procedures that are only called once, which can reduce cognitive load when reading. We can refactor to common procs later for functionality that we need more than once (e.g. in another command). - Start using `sugar.collect` - it also helps the above inlining. - Remove a TODO: `configlet info` will soon use the prob-specs cache. - Remove unneeded generic in `show[A]`. This makes it immediately obvious that we only operate on `HashSet[string]`, and fixes the doc comment - it said that elements are returned "in alphabetical order", which wouldn't be true for e.g. `HashSet[int]`. - Use a new `toStringSorted` common proc. - Avoid `s` as name of `HashSet` parameter - reserve `s` for `string`. - Move type and `init` declarations: make declaration order match usage order. - Move `probSpecsExercises` declaration to the innermost possible scope.
- Loading branch information
Showing
1 changed file
with
65 additions
and
92 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