WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

after checking for parameter presence, consistently use one of "set" or "let" #3677

@michaelficarra

Description

@michaelficarra

Like

If _proto_ is not present, set _proto_ to %Array.prototype%.

or

If _hostDefined_ is not present, let _hostDefined_ be ~empty~.

I think we mostly say "set" in these cases, but there are some occurrences that use "let". I prefer "set" since I consider even optional parameters to already declare the alias.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions