Skip to content

Document toolchain builtin function extension #6697

@zygoloid

Description

@zygoloid

The toolchain has an extension for declaring a builtin function:

fn F() = "no_op";

This is used pervasively by the toolchain to expose built-in primitive functionality to the prelude.

We should document this extension, either in the language design or at least in the toolchain documentation, and also consider a short proposal introducing it and comparing it to other options (such as __builtin_function or recognizing certain library names as being builtins).

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