Skip to content

Small changes#140

Merged
kneasle merged 7 commits into
masterfrom
small-changes
Sep 5, 2022
Merged

Small changes#140
kneasle merged 7 commits into
masterfrom
small-changes

Conversation

@kneasle
Copy link
Copy Markdown
Owner

@kneasle kneasle commented Sep 5, 2022

No description provided.

- Rename (and reverse) `allow_false` to `require_truth` (because
  `allow_false = false` is a really counter-intuitive way to require
  truth)
- Rename `ch_weights` to `course_weights`
Previously, `MethodLib::get_by_title_with_suggestions` would return a
reference to method titles within the `MethodLib`.  This avoids cloning
a few `String`s but makes for a nastier API if the error is expected to
outlive the `MethodLib` it came from (which happens in Monument).
Cloning a few small `String`s is never going to be a bottleneck - and
we're not even in the happy path anymore because we're handling errors.
@kneasle kneasle merged commit 50011dd into master Sep 5, 2022
@kneasle kneasle deleted the small-changes branch September 5, 2022 12:16
kneasle added a commit that referenced this pull request Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant