3 ms·
> For await and yield, we’d need special syntax – e.g.: > value |> await // awaiting a Promise As much as await is nice and helps code to look cleaner - it sho
by valenterry 5y ago
> For await and yield, we’d need special syntax – e.g.:
> value |> await // awaiting a Promise
As much as await is nice and helps code to look cleaner - it should be noted that this example is one of the reasons why language designers have to be careful when adding syntax to support "special cases".
It makes every change down the road just a little bit harder / more complicated.