A possible syntax form
jithujoshyjy opened this issue · comments
Jithu Joshy Jy commented
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😅)
Michael Ficarra commented
The benefit of using a directive instead of new syntax is that it is backward-compatible, which will make adoption significantly easier.