proposal-function-implementation-hiding icon indicating copy to clipboard operation
proposal-function-implementation-hiding copied to clipboard

A possible syntax form

Open jithujoshyjy opened this issue 3 years ago • 1 comments

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😅)

jithujoshyjy avatar Sep 30 '22 20:09 jithujoshyjy

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

michaelficarra avatar Oct 03 '22 15:10 michaelficarra