Skip to content

Use the promise(fn) notation #3

Open
@ForbesLindesay

Description

We could have a promise(fn) method which returns a promise, and calls the function with the resolver for that promise.

Advantages

Disadvantages

  • Increased nesting
  • Extra function keyword
  • deffereds will receive a lot less hate once we have ES6

Summary

I'm very much in favour of this proposal

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions