3 ms·
That is a straw man argument with a splash of FUD. Point the first: You are making the implication (intentional or otherwise) that closures are backward and th
by brehaut 17y ago
That is a straw man argument with a splash of FUD.
Point the first: You are making the implication (intentional or otherwise) that closures are backward and that objects are the correct way to structure a program.
In any language I have used that has supported closures, they are not backwards. Indeed, the languages that support both closures and objects, closures are a well supported and idiomatic tool that is often used (for reference: C# 3+, Python, JavaScript, F#)
Point the second: "...the fact that pretty much all debuggers don't make using closures easy...". Every language I have used that supports closures supports debugging closures with the exact same ease as any other function. If you can pause your program and introspect a function, you can also introspect a closure.
If your are claiming that you can't introspect it from a repl, well you can't introspect any other function from the repl without additional debugging tools or instrumenting the code either.