Skip to content

put utility functions at the bottom of the script #1638

Closed
@weepy

Description

@weepy

At the moment, CoffeeScript puts the utility functions at the top of the script (as it does with all other variables). Unfortunately This causes the preamble of the file to be quite long - and it pushes line numbers further out.

If named functions were used instead, the functions could be placed at the bottom of the file as they would still be in scope.

Here's an example as a gist : https://gist.github.com/1180503

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions