Why is there no pointer arithmetic?
Safety. Without pointer arithmetic it's possible to create a language that can never derive an illegal address that succeeds incorrectly. Compiler and hardware technology have advanced to the point where a loop using array indices can be as efficient as a loop using pointer arithmetic. Also, the lack of pointer arithmetic can simplify the implementation of the garbage collector.
....isn't that similar to the argument they use for most interpreted langs? .... like why learn c.... computers are fast enough now, that interpreters run plenty fast
if i was to put in time learning something new.... i would go with something that allows me to make reliable external interfaces to the computer, like Ada
In reply to Re: Thoughts on "Go"?
by zentara
in thread Thoughts on "Go"?
by punkish
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |