-
Notifications
You must be signed in to change notification settings - Fork 2.6k
parameter_types! helper functions should be uniform across modes #13795
Comments
We and dowstream projects use those in many spots. Just having a breaking change here for beauty is not that of a good idea IMHO. |
You can not give all of them uniform functions. |
What I originally suggested is entirely backwards compatible. It seemed that some functions are missing, and adding them would make the API more uniform. |
And which are missing? |
From what I could gather, these are the differences in mode:
The differences in API between seem irreconcilable at first glance, e.g. it doesn't make sense for |
As I tried to explain above. |
Got it, I have jumped too fast at making it an issue them. Thanks for the explanation(s), closing. |
The
parameter_types
works in 3 modes.All of which generate a
Get
implementation, backed by something, along some other helper functions likeget
,set
,mutate
andtake
(kinda similar to storage items..).It seemed to me that the set of helper functions that is generated by
parameter_types!
is not uniform across different modes.If interested, you can convert this comment into an issue and self-assign.
Originally posted by @kianenigma in #13794 (comment)
The text was updated successfully, but these errors were encountered: