Displaying 1 result from an estimated 1 matches for "costunfathom".
2020 Nov 06
0
[Proposal] Introducing the concept of invalid costs to the IR cost model
Makes sense. I personally greatly prefer having a type rather than a `static constexpr int CostUnfathomable = 10000`.
I think the type should have arithmetic operators defined such that an "invalid cost" on either side results in an invalid cost (similar to how NaN infects floats), and an implicit conversion that constructs a valid cost. Then I could just do:
```
Cost c = 7;
// c is a val...