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

A possible syntax form #51

Open
jithujoshyjy opened this issue Sep 30, 2022 · 1 comment
Open

A possible syntax form #51

jithujoshyjy opened this issue Sep 30, 2022 · 1 comment

Comments

@jithujoshyjy
Copy link

I'm curious to know if it would be better to have a syntax for this requirement;
Maybe something like:

async function connectToDB(connStr) #{
    return await orm.connect(connStr)
}

(It kindof looks ungly😅)

@michaelficarra
Copy link
Member

The benefit of using a directive instead of new syntax is that it is backward-compatible, which will make adoption significantly easier.

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

2 participants