Open Willie169 opened 3 months ago
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
But that would basically make a C interpreter.
I've made PR that solve pass problem, add C-style comments and type declarations. https://github.com/mathialo/bython/pull/55
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:
Python type hint: