4 ms·
> However, static languages cannot change the size of the values dynamically at runtime without additional memory allocations. That is false; a static language
by kazinator 4y ago
> However, static languages cannot change the size of the values dynamically at runtime without additional memory allocations.
That is false; a static language could have bignum integers. E.g. you can easily have a bignum class in C++, which is static.
You can't have a variable-length bignum as an unboxed value type.
"Language with unboxed value types" and "statically typed language" are separate, somewhat related concepts.
- MaxBarraclough 4y agoThey're right that this would require additional allocations though, no? As you indicate though there's no need for this to be something the user of the type needs to think about.
- deleted 4y ago[deleted]