We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
To compile to LLVM or some other bytecode, we'll have to improve our inference.
For example:
def add(a, b): return (x): str(x) + "," + str(a + b) x = add(3, 7) y = x("hi") # Generate def add(a: int, b: int) -> (str -> str): z = x(3.14) # Generate def add(a: int, b: int) -> (float -> str):
In the case where a function type cannot be inferred, it's considered a no-op.
e.g.
x = add(3,7)
This expression alone doesn't do anything, because the function returned by add and assigned to x is never used.
add
x
The text was updated successfully, but these errors were encountered:
No branches or pull requests
To compile to LLVM or some other bytecode, we'll have to improve our inference.
For example:
In the case where a function type cannot be inferred, it's considered a no-op.
e.g.
This expression alone doesn't do anything, because the function returned by
add
and assigned tox
is never used.The text was updated successfully, but these errors were encountered: