[CLJS-529] Lambda functions are always anonymous, even when otherwise stated Created: 29/Jun/13 Updated: 27/Jul/13 Resolved: 16/Jul/13
The function (fn hello  0) evaluates to an anonymous function. Really it should give me a named function expression, which would enhance the debugging experience.
|Comment by David Nolen [ 03/Jul/13 7:58 PM ]|
I think the main reason this isn't done is because of name hoisting. It may very well be the case that we have already done the work to address this - we track scope and shadowing now. I would love to see a patch that demonstrates that adding a real name doesn't cause problems in practice. Thanks for the report.
|Comment by Julian Birch [ 04/Jul/13 5:59 PM ]|
Actually, I think I've been confused. The lambda is correct, the function wrapping it managed to confuse me.
Please close this, sorry for wasting your time.