Skip to content

Enable function names #907

Description

@akidee

How can I use

function myName () {}

in CS? Using a function name is an easier way to recognize a closure in a backtrace.

Activity

  1. zmthy commented on Dec 7, 2010

    @zmthy
    Collaborator

    See the Functions section in the FAQ, in the wiki. An IE bug prevents us from using this.

  2. satyr commented on Dec 8, 2010

    @satyr
    Collaborator

    Have Iwe considered allowing plain declaration (function f(){}), which doesn't suffer JScript bug? The FAQ entry doesn't talk about it.

  3. zmthy commented on Dec 8, 2010

    @zmthy
    Collaborator

    I suppose. It would only work for single normal assignments, though.

  4. akidee commented on Dec 8, 2010

    @akidee
    Author

    Of course I know about plain declaration but I try to avoid it whenever possible.

  5. satyr commented on Dec 8, 2010

    @satyr
    Collaborator

    I try to avoid it whenever possible

    So you write var f = function f(){...}; for inline functions? Isn't it tedious?

  6. toomim commented on Jun 26, 2015

    @toomim

    Did anything come of this plain declaration idea? I am interested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions