Skip to content

Add support for ValueCastable formatting #1188

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

Closed
wanda-phi opened this issue Mar 4, 2024 · 5 comments
Closed

Add support for ValueCastable formatting #1188

wanda-phi opened this issue Mar 4, 2024 · 5 comments
Labels

Comments

@wanda-phi
Copy link
Member

Currently (or, once RFC 50 is implemented), Values can be formatted and printed using the Format + Print mechanism. However, there is no support for pretty-printing custom ValueCastable such as data.View or Amaranth Enum. A mechanism for such should be designed and proposed via the RFC process.

@whitequark
Copy link
Member

Should this be on 0.5 roadmap or not?

@wanda-phi
Copy link
Member Author

Should this be on 0.5 roadmap or not?

shrug I don't really know. I think yes iff we can pull this off for lib.data + lib.enum without eg. getting blocked on support on the yosys side.

@whitequark
Copy link
Member

OK, leaving off milestone for now.

@whitequark
Copy link
Member

RFC for this feature: amaranth-lang/rfcs#58

@whitequark whitequark mentioned this issue Mar 22, 2024
77 tasks
@wanda-phi
Copy link
Member Author

Obsoleted by #1243

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants