Doesn’t the compiler do some hidden allocations?
And as a follow up, why use rust if allocations mean ownership rules are no longer needed?
And as a follow up, why use rust if allocations mean ownership rules are no longer needed?
Ownership still matters, because nothing about ownership cares about heap allocation vs stack allocation.