4 ms·
If you can understand how 'this' works in javascript you can almost certainly understand pointers in C.
by krapp 6y ago
If you can understand how 'this' works in javascript you can almost certainly understand pointers in C.
- andrew_ 6y agoI'm not so sure. I learned pointers via C++ years before I tackled JS. Though I suspect you mean that the comprehension is similarly difficult, the paradigms are quite different. Visualizing and mentally tracking `this` by scope is aided by the structure of JS (even though it can get hairy with `bind`). Pointers requires a different model of thinking, and it's not one that's native to many languages. I originally came up in the mid-90s with VB3 and it was quite a jump to C++.