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

[Feature] Create len builtin #441

Open
2 tasks
Ph0enixKM opened this issue Sep 2, 2024 · 2 comments
Open
2 tasks

[Feature] Create len builtin #441

Ph0enixKM opened this issue Sep 2, 2024 · 2 comments
Labels
enhancement New feature or request stdlib

Comments

@Ph0enixKM
Copy link
Member

Ph0enixKM commented Sep 2, 2024

Is your feature request related to a problem? Please describe.
There was a problem with len function - where to put it, because it fits well in std/text and std/array. The len function is so atomic that should be implemented as a built-in.

Describe the solution you'd like

  • Create a new module len
  • Add deprecation warning to the len function in std/text

Describe alternatives you've considered
Moving len to std/core. This would complicate things even more.

Additional context
N/A

@Ph0enixKM Ph0enixKM added enhancement New feature or request stdlib labels Sep 2, 2024
@Ph0enixKM Ph0enixKM added this to the Amber 0.4.0-alpha milestone Sep 2, 2024
@b1ek

This comment has been minimized.

@Mte90

This comment has been minimized.

@Ph0enixKM Ph0enixKM changed the title [Feature] Move len function from std/text to std/core [Feature] Create len builtin Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request stdlib
Projects
None yet
Development

No branches or pull requests

3 participants