google / google/xls

[DSLX] Support methods on structs

Open
#617 2 comments 0 reactions 1 assignee Claimed by @erinzmoore View on GitHub
dslx enhancement
Dominant language
C++
Stars
1.9k
Forks
283
Avg merge
2d 10h
Merged PRs (30d)
135

Description

As reflected in #526 an outstanding request has been to support methods on struct instances so folks can use the familiar "object oriented receiver" style function invocations -- without polymorphism the additional utility is limited but familiarity/convenience / some conciseness will certainly be increased, and it helps pave the path towards monomorphization, right now the DSL only supports parametric instantiation via constexpr values.

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.