3 ms·
Primitive types are really annoying. If they were about what user needs not about underlying hardware they'd be fine. I dont care about int, long, float or do
by scotty79 4y ago
Primitive types are really annoying.
If they were about what user needs not about underlying hardware they'd be fine.
I dont care about int, long, float or double.
I care about number to represent whole amount, or fractional amount or approximate amount with operations that work accordingly lile approximate comparison of approximate numbers. Approximations for when I care about approximation error and for when I don't. Number that are limited to the ranges I care about not some arbitrary MAX_INT. Numbers that have units so that I won't accidently assigned a length to a variable that should hold mass.
So yeah, as they are primitive types do introduce unnecessary complexity and none useful complexity unless you want to work close to the metal.
- canadianfella 4y agoI wish more languages handled it like Frink does. https://frinklang.org/ https://frinklang.org/