| 22:02 | <ptomato> | I'd like to do an informal poll! about coercion to integers in the context of Temporal |
| 22:03 | <ptomato> | precedent in JS is to convert all sorts of nonsensical values to 0 if an integer is expected: |
| 22:03 | <ptomato> |
|
| 22:04 | <ptomato> | but not universally: |
| 22:04 | <ptomato> |
|
| 22:05 | <ptomato> | Temporal entry points currently work like the former |
| 22:06 | <ptomato> | this leads to several bug-prone situations: |
| 22:06 | <ptomato> |
|
| 22:07 | <ptomato> | therefore we are considering changing this coercion to an integer to be more restrictive |
| 22:08 | <ptomato> | I'd like to figure out if people are generally comfortable with this or it is likely to provoke a lot of discussion |
| 22:11 | <ptomato> | please react: 🤷 = I don't feel particularly strongly about this 🐛 = I feel strongly that bug-prone situations such as these should be avoided ⚖️ = I feel strongly that consistency with the precedent is most important |
| 22:12 | <ptomato> | (for more in-depth information, see https://github.com/tc39/proposal-temporal/issues/2112) |