by codebje · 8y ago · 0 comments
That there's no difference between a const ptr and a ref at runtime is irrelevant, because there's a significant difference at compile time.
While at it, you could ditch some of the old language.
Ultimately, everything is just some place in memory, cache and/or CPU register.
Plus there is the potential undecidability if you want to use automated type deduction. Hard to spot where the types have to be so to speak reified with bad error messages.