You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That would be a good suggestion for ESDiscuss and I am sure that TypeScript would follow suit if the proposal made it. Diverging outside of that just in TypeScript wouldn't likely make sense.
Activity
RyanCavanaugh commentedon Jul 27, 2017
🚲 🏠 what should we name the variable when downleveling?
DanielRosenwasser commentedon Jul 27, 2017
I was thinking
unexpectedTokenInJsonAtPositionError.jwbay commentedon Jul 28, 2017
I'd vote 🤷♀️, with further downleveling as appropriate.
saschanaz commentedon Aug 14, 2017
The page is moved to https://tc39.github.io/proposal-optional-catch-binding/, for someone who wants to track the change of TS 2.5.
ZanderBrown commentedon Aug 31, 2017
Just a thought but how about having the catch block itself as optional?
For example we have the 'traditional' try catch:
The 'I don't care what went wrong' try catch:
So how about a 'I don't care' try (catch):
kitsonk commentedon Aug 31, 2017
That would be a good suggestion for ESDiscuss and I am sure that TypeScript would follow suit if the proposal made it. Diverging outside of that just in TypeScript wouldn't likely make sense.