google / google/xls

Second class functions

Open
#842 3 comments 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

It would be useful to be able to do something like

```
fn do_something(x: uN[N]) -> uN[N] { ... }

proc do_something_repeatedlyuN[N] = do_something> { ... }
```

It seems like first class functions are a pretty big change that breaks lots of abstractions, but second class (or whatever, I don't know what these classes all mean) functions would allow for a lot of proc reuse, especially if types can also be parameters to the proc.

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.