Open jithujoshyjy opened 1 year ago
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😅)
The benefit of using a directive instead of new syntax is that it is backward-compatible, which will make adoption significantly easier.
I'm curious to know if it would be better to have a syntax for this requirement; Maybe something like:
(It kindof looks ungly😅)