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

Type aliases for numeric types #7272

Open
jfecher opened this issue Feb 4, 2025 · 2 comments · May be fixed by #7583
Open

Type aliases for numeric types #7272

jfecher opened this issue Feb 4, 2025 · 2 comments · May be fixed by #7583
Assignees
Labels
enhancement New feature or request

Comments

@jfecher
Copy link
Contributor

jfecher commented Feb 4, 2025

Problem

We don't currently allow type aliases for numeric generics in Noir:

type Double<let N: u32>: u32 = N * 2;

(syntax up for debate)

Happy Case

We should support type aliases for numeric types to simplify larger arithmetic generic expressions.

Workaround

None

Workaround Description

No response

Additional Context

No response

Project Impact

None

Blocker Context

No response

Would you like to submit a PR for this Issue?

None

Support Needs

No response

@jfecher jfecher added the enhancement New feature or request label Feb 4, 2025
@github-project-automation github-project-automation bot moved this to 📋 Backlog in Noir Feb 4, 2025
@michaeljklein
Copy link
Contributor

#6605

@jfecher
Copy link
Contributor Author

jfecher commented Feb 4, 2025

@michaeljklein looks like a different issue. That one is on supporting type aliases in the kind position where this issue is on supporting defining type aliases that alias numeric types.

@guipublic guipublic linked a pull request Mar 5, 2025 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 📋 Backlog
Development

Successfully merging a pull request may close this issue.

3 participants