Skip to content

Three dot ellipses used for both comments and spread operators is confusing #556

@Fosten

Description

@Fosten

@jackahl I brought this up during the PloneConf21 Trainings OpenSpace and @fredvd asked me to make a ticket. When using ... as a comment, recommend using // ... (and perhaps some text) to make it more apparent this is actually a comment. Looks like most of the training pages do this already, but there are a few occurrences in places like https://training.plone.org/5/voltohandson/header.html#header-component without the double slash. I've found this to be more prevalent on the https://docs.voltocms.com site which I'm not sure falls under this issue tracker. But on pages where there is both a ... comment and a ... spread operator, this can be particularly confusing.

export blocks = {
...config.blocks,
}
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions