Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Start the Standard Library #17

Closed
3 tasks
Tracked by #31
ahdinosaur opened this issue Aug 20, 2023 · 0 comments · Fixed by #65
Closed
3 tasks
Tracked by #31

Start the Standard Library #17

ahdinosaur opened this issue Aug 20, 2023 · 0 comments · Fixed by #65
Assignees
Labels
enhancement New feature or request

Comments

@ahdinosaur
Copy link
Owner

ahdinosaur commented Aug 20, 2023

Describe the solution you'd like

A core standard library based on: https://clojuredocs.org/quickref

At the moment, a function body can only be a Rimu expression. But for a standard library, we need to be able to access things in Rust-land, such as the length of a list's vec.

TODO Checklist

  • Change Value's Function into an enum
    • Existing case is Function::Rimu
    • New case is Function::Rust, where the enum references a Rust function.
  • Create rimu-stdlib crate
    • Create length function

Describe alternatives you've considered

Additional context

@ahdinosaur ahdinosaur mentioned this issue Sep 4, 2023
17 tasks
@ahdinosaur ahdinosaur changed the title stdlib Core Standard Library Sep 15, 2023
@ahdinosaur ahdinosaur self-assigned this Sep 15, 2023
@ahdinosaur ahdinosaur added the enhancement New feature or request label Sep 15, 2023
@ahdinosaur ahdinosaur changed the title Core Standard Library Start the Standard Library Sep 15, 2023
ahdinosaur added a commit that referenced this issue Sep 29, 2023
- add native function
- start stdlib: closes #17
  - length
  - map: close #49
  - range
- eval returns spanned values: close close
#42
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant