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
Describe the Feature Request
Cairo function pointer
Describe Preferred Solution
Like in Rust language ( https://doc.rust-lang.org/reference/types/function-pointer.html )
Describe Alternatives
Related Code
fn add(x: i32, y: i32) -> i32 { x + y } let mut x = add(5,7); type Binop = fn(i32, i32) -> i32; let bo: Binop = add; x = bo(5,7);
Additional Context
If the feature request is approved, would you be willing to submit a PR? (Help can be provided if you need assistance submitting a PR)
The text was updated successfully, but these errors were encountered:
Any specific reason you need it? (it is planned - but it is a huge and much more difficult feature than you might expect).
We are working on closures specifically - which should take care of a lot of the relevant usecases.
Sorry, something went wrong.
No branches or pull requests
Feature Request
Describe the Feature Request
Cairo function pointer
Describe Preferred Solution
Like in Rust language ( https://doc.rust-lang.org/reference/types/function-pointer.html )
Describe Alternatives
Related Code
Additional Context
If the feature request is approved, would you be willing to submit a PR?
(Help can be provided if you need assistance submitting a PR)
The text was updated successfully, but these errors were encountered: