google / google/xls

Support proc-local functions

Open
#520 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

It'd be nice to have procs be self-contained, as objects are in OOP. IOW, it'd be nice to be able to do:

```
proc p {
config(...) { ... }

next(tok: token, state: state_t) {
let new_state = create_new_state(...);
}

fn create_new_state(...) -> state_t { ... }
}
```

That way we can "localize" concerns, rather than having to splat them all over and mix them in a impl. file.

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.