Skip to content

Prefixing builtins with std:: #9

Open
@kgabis

Description

@kgabis

Hi,
I'm considering prefixing builtins with std:: prefix, so instead of len and array one would write std::len and std::array. Why? Because there's a lot of keywords used up by builtins so it's quite easy to get a name collision for popular names (len, array, values, etc.). At the same time I want to add using (similar to c++ using namespace) to make converting existing code easier. Alternatively I might prefix functions with context dependent prefix, for instance values would become map::values, sqrt becoming math::sqrt. Since it's quite intrusive I wanted to ask users for opinion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions