google / google/xls

[enhancement] impl should support type alias

Open
#1,778 1 comment 0 reactions 0 assignees View on GitHub
dslx enhancement
Dominant language
C++
Stars
1.9k
Forks
283
Avg merge
2d 10h
Merged PRs (30d)
135

Description

### 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.