I have two thinkings about risk of this idea.
First, I think this syntax is almost same risk as try-catch syntax, because
try-catch syntax is often used for just swallowing errors and it will be
making hard to debug.
Rather, this might be better because the target of syntax is partial. This
is like the techniques to convert null or undefined to basic value of types
Second, how about make the debugger tells us silent errors like uncaught
I think we would not mind that all silent errors appear to console, because
they was supposed to be appear if unless this syntax.
For above fetch example, we would want to know errors even if we want to
silent it in codes.
es-discuss mailing list