Skip to content

Compiling functions without type hints #3

@jarble

Description

@jarble

Is py2cpp able to compile Python without type hints?

It seems that it would be possible to take a function like this:

def subtract(a,b)
    return a - b

...and generate a C++ function like this, using auto to infer the types:

auto subtract(auto a, auto b){
    return a - b;
}

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