News for hackers. Stuff that matters.
Re:Pharo 11 by scotty79 on Thursday May 11, 2023 @01:29PM (#35905394)
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.

There are no comments on this comment yet.