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

[enhancement] impl should support type alias #1778

Open
proppy opened this issue Dec 10, 2024 · 1 comment
Open

[enhancement] impl should support type alias #1778

proppy opened this issue Dec 10, 2024 · 1 comment
Labels
dslx DSLX (domain specific language) implementation / front-end enhancement New feature or request

Comments

@proppy
Copy link
Member

proppy commented Dec 10, 2024

What's hard to do? (limit 100 words)

Currently it's a bit cumbersome to define derivative types closely related to another a given struct parametrics.

Current best alternative workaround (limit 100 words)

One need to derive type from parametrics on every use thru local type =.

Your view of the "best case XLS enhancement" (limit 100 words)

Similar to const support within impl, it should be nice to be able define struct-level type aliases that are in scope within impl methods.

@proppy proppy added enhancement New feature or request dslx DSLX (domain specific language) implementation / front-end labels Dec 10, 2024
@proppy
Copy link
Member Author

proppy commented Dec 10, 2024

Even better if those would also be visible in struct definition so that you can use alias to type members related to struct parametrics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dslx DSLX (domain specific language) implementation / front-end enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

1 participant