Create til namespaces shorthanding the chromium safe math #5860

Closed
opened 2026-01-31 00:23:39 +00:00 by claunia · 4 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.
Author
Owner

@DHowett-MSFT commented on GitHub (Feb 18, 2020):

We may have decided we don't need to do this, actually. The namespace isn't all that bad. I don't recall, though.

@DHowett-MSFT commented on GitHub (Feb 18, 2020): We may have decided we don't need to do this, actually. The namespace isn't all that bad. I don't recall, though.
Author
Owner

@zadjii-msft commented on GitHub (Dec 9, 2021):

Hey @miniksa @DHowett, it's been two years of this and I don't think this is bothering anyone. Close?

@zadjii-msft commented on GitHub (Dec 9, 2021): Hey @miniksa @DHowett, it's been two years of this and I don't think this is bothering anyone. Close?
Author
Owner

@miniksa commented on GitHub (Dec 9, 2021):

@lhecker, as the current master of the til namespace, what's your opinion here?

@miniksa commented on GitHub (Dec 9, 2021): @lhecker, as the current master of the `til` namespace, what's your opinion here?
Author
Owner

@lhecker commented on GitHub (Dec 9, 2021):

maybe... no

@lhecker commented on GitHub (Dec 9, 2021): ![maybe... no](https://media.giphy.com/media/LSFwEyHmoBwF0S3YM5/giphy-downsized.gif)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#5860