Skip to content

Conversation

@KrosFire
Copy link
Member

@KrosFire KrosFire commented Nov 3, 2025

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

Copy link
Contributor

Copilot AI left a 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 replace to replace_text in replace_regex to avoid shadowing the replace function
  • Added explicit cast in array_filled to 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.

@KrosFire KrosFire requested review from Ph0enixKM and Copilot November 5, 2025 21:36
Copy link
Contributor

Copilot AI left a 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants