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 Functions/Closures #12

Open
doonv opened this issue Jan 11, 2024 · 0 comments
Open

Add Functions/Closures #12

doonv opened this issue Jan 11, 2024 · 0 comments
Labels
A-Builtin-Parser This is related to the Built-in Parser C-Enhancement New feature or request

Comments

@doonv
Copy link
Owner

doonv commented Jan 11, 2024

What problem does this solve or what need does it fill?

There is no way to make your own functions/closures inside the built-in parser.

What solution would you like?

Add a way to create your own functions/closures.

I think only implementing closures is actually the right move, mostly because its less work.
But I also kinda prefer the closure syntax for creating functions in a console. Heres an example:

my_func = |a| a + 5
my_func 5
> 10
@doonv doonv added C-Enhancement New feature or request A-Builtin-Parser This is related to the Built-in Parser labels Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Builtin-Parser This is related to the Built-in Parser C-Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant