Create til namespaces shorthanding the chromium safe math #5857

Open
opened 2026-01-31 00:23:32 +00:00 by claunia · 0 comments
Owner

Originally created by @miniksa on GitHub (Jan 10, 2020).

We may actually want to namespace a bunch of this stuff into til (with using), more than what @lhecker's already suggested. It'll make us more robust if we ever do want to change things up in the future, and avoid littering chromium::numerics::whatever all over every part of the code.

Originally posted by @DHowett-MSFT in https://github.com/microsoft/terminal/pull/4144#issuecomment-572804554

This represents putting something like til::saturated<T> as the shorthand for the chromium::numerics::ClampedNumeric<T> and so forth for the other representations per @DHowett-MSFT's comment.

Originally created by @miniksa on GitHub (Jan 10, 2020). We may actually want to namespace a bunch of this stuff into `til` (with `using`), more than what @lhecker's already suggested. It'll make us more robust if we ever do want to change things up in the future, _and_ avoid littering `chromium::numerics::whatever` all over every part of the code. _Originally posted by @DHowett-MSFT in https://github.com/microsoft/terminal/pull/4144#issuecomment-572804554_ This represents putting something like `til::saturated<T>` as the shorthand for the `chromium::numerics::ClampedNumeric<T>` and so forth for the other representations per @DHowett-MSFT's comment.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#5857