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
I think we should allow specifying the type of declarations within for loops. Examples:
for x: Tofyfor x: Tinyforeach x: Tofyforlet[x,y]: [A,B]ofy
Some of these currently have a different meaning (e.g. for {x: T} of y). An alternative that would preserve this implicit object destructuring meaning would be able to allow type specifiers only when there's an explicit const/let/var:
forconst x: Tofy
The text was updated successfully, but these errors were encountered:
I think we should allow specifying the type of declarations within
for
loops. Examples:Some of these currently have a different meaning (e.g.
for {x: T} of y
). An alternative that would preserve this implicit object destructuring meaning would be able to allow type specifiers only when there's an explicitconst
/let
/var
:The text was updated successfully, but these errors were encountered: