Skip to content

C-style Type Declaration #51

@Willie169

Description

@Willie169

It will be easier for users from C/C++ to use type hint of Python if Bython supports the conversion from C-style type declaration to Python type hint. For example:
C-style type declaration:

int add(int x, int y) {
    return x + y;
}

Python type hint:

def add(x: int, y: int) -> int:
    return x + y

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