Skip to content

Allow $ in identifiers #8094

@cknitt

Description

@cknitt

In JS, an identifier may contain the $ sign.

When using signals, there is the convention to use it to distinguish reactive values like in

const count$ = signal(0);

In ReScript,

let count$ = signal(0)

gives the error

Not sure what to do with this character: "$".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions