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

Procedure & (lambda) function as extra instructions & computations #31

Open
nsensfel opened this issue Sep 8, 2021 · 1 comment
Open
Assignees
Labels
enhancement New feature or request fate Issues relating to the Fate language

Comments

@nsensfel
Copy link
Owner

nsensfel commented Sep 8, 2021

Add two first level instructions:

(define_computation <return_type> <name> (<var list>) <computation>) which defines a lambda function that is registered as an extra computation.

(define_instruction <name> (<var list>) <instruction list>) which defines a sequence that is registered as an extra instruction.

Add a warning if those would collide with an existing computation/instruction, but then replace the existing one.

@nsensfel nsensfel added enhancement New feature or request fate Issues relating to the Fate language labels Sep 8, 2021
@nsensfel nsensfel added this to the V1 - Release Candidate 2 milestone Sep 8, 2021
@nsensfel nsensfel self-assigned this Sep 8, 2021
@nsensfel
Copy link
Owner Author

I think it might be better to actually have:

  • (register_computation [LAMBDA] {name: String})
  • (register_instruction [SEQUENCE] {name: String})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request fate Issues relating to the Fate language
Projects
None yet
Development

No branches or pull requests

1 participant