Introduce a macro for declaring slot names
未關閉
- 主要語言
- Rust
- 星號
- 132
- 分支
- 167
- 平均合併
- 1 天 23 小時
- 30 天內合併 PR
- 110
描述
I think we could consider having a simple macro taking in just a `name` and a `path` that expands to this declaration. There's precedent for this with e.g. `account_component_code`. While in this case it doesn't help as much, we have a lot of these `SLOT_NAME` constants and it hurts readability for modules containing many of these, see e.g. https://github.com/0xMiden/protocol/blob/7cf8a220bfb4dddcba2fb9da8429187e4df1b1f3/crates/miden-standards/src/account/policies/manager.rs
_Originally posted by @zeapoz in https://github.com/0xMiden/protocol/pull/3456#discussion_r3691468410_
貢獻指南
評估
這個 Issue 還沒有評估資料。