-
Notifications
You must be signed in to change notification settings - Fork 100
Added improvements to stdlib #821
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
base: staging
Are you sure you want to change the base?
Added improvements to stdlib #821
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR improves type safety and code clarity in the standard library by adding explicit type annotations to function parameters and renaming variables to avoid naming conflicts.
- Added explicit type annotations to previously untyped function parameters
- Renamed parameter
replacetoreplace_textinreplace_regexto avoid shadowing thereplacefunction - Added explicit cast in
array_filledto ensure type consistency
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/std/text.ab | Renamed parameter replace to replace_text to avoid shadowing the global replace function |
| src/std/math.ab | Added explicit Num type annotation to the number parameter in math_abs |
| src/std/array.ab | Added type annotations to array_extract_at parameters and explicit cast in array_filled |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
These changes are a result of new version of amber lsp dedicated to this amber version. Thanks to these changes, users will have a better experience when using stdlib