Re:The Science of Functional Programming [pdf]
by ScottBurson on Saturday September 28, 2019 @03:47PM
(#21102452)
They're certainly no harder a concept than pointers in C! They also don't cause crashes that can be very difficult to debug.
Re:The Science of Functional Programming [pdf]
by classified on Saturday September 28, 2019 @03:58PM
(#21102508)
> 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.
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.