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

Add function type #1

Closed
jmeaster30 opened this issue Sep 1, 2021 · 1 comment
Closed

Add function type #1

jmeaster30 opened this issue Sep 1, 2021 · 1 comment
Labels
Feature this is something we need to add Lexer change with the lexing Parser change with the parser

Comments

@jmeaster30
Copy link
Owner

I want to be able to pass a function into another function and call it so we would need a function type

ideas:
func<i32, i32 -> i32, i32> a function that takes two i32's as parameters and returns two i32's as output
func<i32, i32 -> auto> a function that takes two i32's as parameters and returns whatever but it is determined at compile time
func<auto -> auto> a function that takes whatever determined at compile time and returns whatever determined at compile time
func<auto<T> -> T> a function that takes whatever determined at compile time and returns the same type

@jmeaster30 jmeaster30 added Feature this is something we need to add Lexer change with the lexing Parser change with the parser labels Sep 1, 2021
@jmeaster30
Copy link
Owner Author

Done :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature this is something we need to add Lexer change with the lexing Parser change with the parser
Projects
None yet
Development

No branches or pull requests

1 participant