The name of functions is shown in the stack trace, if there is an exception thrown.
The name will typically also be shown in the debugger's scope window:
For these two reasons, naming anonymous functions can make debugging easier, especially when dealing with complex call structures with many anonymous functions.
If for some reason, you want to access the name of the function, you can do so with F.name
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…