Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C-style Type Declaration #51

Open
Willie169 opened this issue Aug 1, 2024 · 2 comments
Open

C-style Type Declaration #51

Willie169 opened this issue Aug 1, 2024 · 2 comments

Comments

@Willie169
Copy link

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
@ViktorPopp
Copy link

But that would basically make a C interpreter.

@Willie169
Copy link
Author

I've made PR that solve pass problem, add C-style comments and type declarations.
#55

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants