Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

async functions #3

Open
GabrielRatener opened this issue Nov 15, 2015 · 6 comments
Open

async functions #3

GabrielRatener opened this issue Nov 15, 2015 · 6 comments

Comments

@GabrielRatener
Copy link

Since Babel supports async functions shouldn't Frappe as well?

@lydell
Copy link
Owner

lydell commented Nov 16, 2015

Yes. Ideas?

@GabrielRatener
Copy link
Author

I think the async keyword that will most likely be used in JS, is not the best way to go as it's too verbose. What about ~| Arguments > { Block }?

@forivall
Copy link
Contributor

In tacoscript, I'm using +> and +=>. I was originally going to use ~> and ~=>, but found that it was a little bit too easy to confuse with ->. However, since frappe isn't using ->, ~| args... > would make sense. (I'd like to be able to support frappe's syntax choices in tacoscript eventually).

Livescript uses ~ as the binding operator, and doesn't support async functions yet.

TL;DR: +| Arguments > { Block } could also be an option.

@lydell
Copy link
Owner

lydell commented Nov 17, 2015

What about regular function(){}?

@vendethiel
Copy link

It's livescript and you're wrong: our async function syntax is *->

@vendethiel
Copy link

Ah no, i'm mixing yielding and es7 async I think :). Carry on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants