Skip to content
This repository was archived by the owner on Jun 16, 2021. It is now read-only.
This repository was archived by the owner on Jun 16, 2021. It is now read-only.

Ion keyword clash #62

@tjpalmer

Description

@tjpalmer

Some identifiers used in the ion c compiler are reserved words in ion, such as var or import. When controlling a whole api, this can be worked around by changing the identifier name. However, if someone needed to use a third-party api with naming conflicts, they'd have to make adapters in c before they could use it.

It might be worth making some escape mechanism (like a prefix such as $identifier) for such cases.

An added complexity is that this would allow expression of any identifier name in ion, which could then break a c back end, so I guess the c back end would then need to have a way to change those identifiers to some safe word.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions