Skip to content

Conversation

AndreasArvidsson
Copy link
Member

No description provided.

@AndreasArvidsson AndreasArvidsson requested a review from a team as a code owner June 1, 2025 09:59
@AndreasArvidsson
Copy link
Member Author

AndreasArvidsson commented Jun 1, 2025

@pokey Here is another one that is questionable. Type arguments as arg. I can see the logic in this, but we don't support this in any other languages.

changeArgBlueAir.yml

* modifiers.
*/
export const legacyLanguageIds = ["rust"] as const;
export const legacyLanguageIds = ["dummy"] as const;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Compilation error if this list is empty. Cleaning up all the legacy machinery will be done in a follow up.

modifiers:
- type: containingScope
scopeType: {type: name}
scopeType: {type: collectionKey}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks more like a key / value map than call arguments

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In no other language is the domain for the return value the entire function. This is also extra problematic since you can have multiple return statements.

- type: primitive
modifiers:
- type: containingScope
scopeType: {type: argumentOrParameter}
Copy link
Member

@auscompgeek auscompgeek Jun 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this also be a type? (How do we handle tuple types in TypeScript?)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which one?
You mean typed arrays like [number, string]? Those are just collection items and not usable as type.

@AndreasArvidsson AndreasArvidsson merged commit 774c6c5 into main Jun 16, 2025
15 checks passed
@AndreasArvidsson AndreasArvidsson deleted the rust branch June 16, 2025 08:09
AndreasArvidsson added a commit that referenced this pull request Jun 16, 2025
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.

2 participants