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

[BUG] Expression built-ins should be formalized #607

Open
2 tasks
Ph0enixKM opened this issue Nov 22, 2024 · 0 comments
Open
2 tasks

[BUG] Expression built-ins should be formalized #607

Ph0enixKM opened this issue Nov 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Ph0enixKM
Copy link
Member

Describe the bug
Right now lines built-in forces user to use it with parentheses:

let var = lines(file) // OK
let var = lines file // Error: Variable 'lines' does not exist

However this does not apply to len

let var = len(file) // OK
let var = len file // OK

What should be done?

  • A more precise error message saying that expression built-ins should be used with parentheses
  • Set the same constraints to other expression built-ins
@Ph0enixKM Ph0enixKM added the bug Something isn't working label Nov 22, 2024
@github-project-automation github-project-automation bot moved this to 🆕 New in Amber Project Nov 22, 2024
@Ph0enixKM Ph0enixKM added this to the Amber 0.4.0-alpha milestone Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant