Skip to content

Macro to simplify user experience #12

Description

@slinkydeveloper

Hi,
It would be nice to have some procedural macro to simplify the user experience for:

  • extracting the state from the context
  • generate the main, avoiding the boilerplate

For example:

#[stateful_function("example/greet")]
pub fn greet(context: Context, request: GreetRequest, #[state("seen_count")] state: Option<Int32Value>) -> Effects {
  //code
}

If you're interested in this feature, i'm willing to give it a try!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions