3 ms·
Why do I need to understand how the compiler works, at that level of detail? I don't see why understanding closures requires so much mental effort. Just using
by iamaelephant 7y ago
Why do I need to understand how the compiler works, at that level of detail?
I don't see why understanding closures requires so much mental effort. Just using them a few times should give you a practical understanding of how they work. Closures are not a complicated concept - a bunch data your function has access to outside of its own scope.
- ScottBurson 7y agoThey're certainly no harder a concept than pointers in C! They also don't cause crashes that can be very difficult to debug.
- classified 7y ago> Why do I need to understand how the compiler works How do you propose to master the language if you don't understand the principal tool that embodies that language? Of course it's always an option to use a language without really understanding it, if that's your thing. > Closures are not a complicated concept The first lectures introducing closures after their discovery had CS professors in the audience who didn't understand what they were good for. Functions could access a bunch of data outside their local scope before that.