Skip to content

Closure vs closure expression #35

Closed
@hollance

Description

@hollance

I read this the other day: http://airspeedvelocity.net/2014/06/16/closures-and-closure-expressions-are-two-different-things/

I think it's good to use proper terminology in our style guide. A closure is something that captures from its environment. This can be a named function or it can be an anonymous inline function, aka a closure expression, defined with just { }.

In other words, just because you use { } to define a block of code doesn't necessarily make it a closure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions