Skip to content
This repository was archived by the owner on Jan 25, 2022. It is now read-only.
This repository was archived by the owner on Jan 25, 2022. It is now read-only.

Is this really needed if we need a sigil #61

@Jordan-Hall

Description

@Jordan-Hall

Hi

I know they the topic about using private rather than sigil. But I want to say that's dead in the water because we all agree a sigil is needed as JavaScript Dynamic typed. But it lead me to believe that we should instead can we put an end to this proposal in the current state.

Can we not have some base decorators (https://github.com/tc39/proposal-decorators) and use @Private and @Protected to get this to work. I know @littledan would prefer to see a @ symbol rather than a # as it's ugly.

Example of someone's decorator: https://github.com/wojtkowiak/private-decorator. For me this would be a cleaner way and it would allow methods and classes to be private and protected without having to worry about anything. If this comes as default in JS then do we really need Sigil when we can mask it like a decorator.

Regards,
Jordan

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