3 ms·
Apologies! I didn't mean to steal your valor! My memory is pretty bad these days. My intent with the split between the true/false world of values and the suc
by kragen 2y ago
Apologies! I didn't mean to steal your valor! My memory is pretty bad these days.
My intent with the split between the true/false world of values and the success/failure world was to avoid the situation where a false x would run y, but you're right that if bool ? x can fail (for example if x fails), we haven't really solved anything. And if a failing x doesn't cause bool ? x to fail, we have some other knotty problems: does it return a value, and if so, what? Doesn't that eliminate the possibility of using the failure construct as a model of exceptions? (Is that bad?)
It's fun to think about what semantics you'd need to decompose lerp into two such operations. Maybe (a/b) : (c/d) evaluates to (a+c)/(b+d), for example.