3 ms·
I don't mind venting at all, but don't agree. > This adds a mental load which is -- as clearly visible from above -- is totally unnecessary For numbers in Typ
by mhaberl 5y ago
I don't mind venting at all, but don't agree.
> This adds a mental load which is -- as clearly visible from above -- is totally unnecessary
For numbers in Typescript you basically have a number type (there is also that story about BigInt, but...) - this is as good as Rusts f64
In Rust you have:
u8, u16, u32, u64, u128,
i8, i16, i32, i64, i128,
f32, f64
Sure, you could have some kind of alias number = f64 - but why?
Rust and Typescript have different uses.
For the web, number (f64) is good enough.
If you do system programming then you need some options.