Skip to content

Should we allow void in the ForBinding? #14

@JLHwung

Description

@JLHwung

Since using void = foo() is valid, I will expect this example is also valid (the surrounding block statement for using is omitted):

for (using void of [foo()]);

which means ForBinding could be

ForBinding[Yield, Await, Pattern] :
    BindingIdentifier[?Yield, ?Await]
    [+Pattern] BindingPattern[?Yield, ?Await]
+   [~Pattern] void

However I can't find any ForBinding revisions in the current draft spec.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions