▲ | tialaramex 4 days ago | ||||||||||||||||||||||||||||||||||
> Even assembly language and machine code has types. I agree with the overall thrust of your argument, but on this specifically what's noticeable in an assembly language is that data doesn't have types, the operations are typed. That's usually not really a thing in programming languages. It does happen, but it's not common. For example Rust's Wrapping<i8> is a distinct type from Saturating<i8>, and if we've got variables named foo and bar with the value 100 in them, if foo and bar have the type Wrapping<i8> the addition operation means the answer is -56 but for Saturating<i8> the exact same addition operation gets you 127 In assembly or machine code there's be Wrapping addition, and Saturating addition and they'd both work on integers, which don't themselves inherently care. | |||||||||||||||||||||||||||||||||||
▲ | guerrilla 4 days ago | parent [-] | ||||||||||||||||||||||||||||||||||
No, the data is typed; it's just not type checked. | |||||||||||||||||||||||||||||||||||
|