4 ms·
> 1. Restrict what language can do. Without pointers, you won't have to explain what pointers are and won't have to introduce complex mechanism to deal with the
by xiaq 10y ago
> 1. Restrict what language can do. Without pointers, you won't have to explain what pointers are and won't have to introduce complex mechanism to deal with them.
Pointers are not complex, and pointer operations are not complicated. They are difficult for human to understand, but pointers are a most basic thing to CPU.
If your language doesn't have pointers, it almost certainly has references. At least for machines, pointers are simpler.
- fiedzia 10y ago> Pointers are not complex, and pointer operations are not complicated. That's the understanding of simplicity I am fighting with. Yes, concept is simple. Getting it right in any non-trivial code is nearly impossible (without some form of verification).