4 ms·
Every language which does not support pointers and pointer arithmetic by default has a more complicated way of doing it. Look at Python, for example. When you w
by exDM69 15y ago
Every language which does not support pointers and pointer arithmetic by default has a more complicated way of doing it. Look at Python, for example. When you want to deal with arrays for interfacing with C code or image processing or just for plain performance gains, you have to deal with Numpy arrays which are even more difficult than pointers (esp. when it comes to C code wrappers).
Haskell gets this right. You never write regular Haskell code with pointers but when you need to do some low level stuff, there is a native pointer type and I/O operations peek and poke.
The pass by value semantics of C are well suited for the low level language that C is.