Skip to content

[Question] How do I use keywords in Rust? #537

@Yappaholic

Description

@Yappaholic

I want to provide a way to use keywords in functions when embedding steel in Rust. Something like:

fn foo(fst: Keyword<String>, snd: Keyword<String>) {
  print!("{} {}", fst,snd);
}

And then in Steel:

(foo #:fst "bar" #:snd "baz")

Is this possible to do at the current stage of the project? Thank you

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