Skip to content
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

Vision: Pallet syntax improvement #187

Open
3 of 7 tasks
ggwpez opened this issue Apr 13, 2023 · 3 comments
Open
3 of 7 tasks

Vision: Pallet syntax improvement #187

ggwpez opened this issue Apr 13, 2023 · 3 comments
Labels
I6-meta A specific issue for grouping tasks or bugs of a specific category. T1-FRAME This PR/Issue is related to core FRAME, the framework.

Comments

@ggwpez
Copy link
Member

ggwpez commented Apr 13, 2023

Some ideas that came up in recent meetings and discussions on how to improve the pallet syntax:

Please edit to extend.

@bkchr
Copy link
Member

bkchr commented Apr 13, 2023

  • and Error optional.

That doesn't work. We need T for Error to get the pallet index.

@lsroudi
Copy link

lsroudi commented Apr 16, 2023

really it take time to learn the syntax, this changes regarding the syntax for me should be scheduled but it is not the important one

@juangirini juangirini transferred this issue from paritytech/substrate Aug 24, 2023
@the-right-joyce the-right-joyce added I6-meta A specific issue for grouping tasks or bugs of a specific category. T1-FRAME This PR/Issue is related to core FRAME, the framework. and removed J1-meta labels Aug 25, 2023
@kianenigma
Copy link
Contributor

Making the on the pallet Event and Error optional

I am not sure if this is the way forward tbh. I wish I could come up with a single rule that would rule all of the #[pallet] enhanced types, but especially because of Event and GenesisConfig, I cannot. These two can correctly have no generic, and this makes it tricky.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I6-meta A specific issue for grouping tasks or bugs of a specific category. T1-FRAME This PR/Issue is related to core FRAME, the framework.
Projects
Status: In Progress
Development

No branches or pull requests

6 participants