Introduce a macro for declaring slot names
Aperta
- Lingua principale
- Rust
- Stelle
- 132
- Fork
- 167
- Merge medio
- 1g 23h
- PR unite (30g)
- 110
Descrizione
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_
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.