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

Enable WIT gates to take user-defined strings as arguments #388

Open
yoshuawuyts opened this issue Aug 16, 2024 · 0 comments
Open

Enable WIT gates to take user-defined strings as arguments #388

yoshuawuyts opened this issue Aug 16, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@yoshuawuyts
Copy link
Member

Following #377, we'd like to be able to write @deprecated with a message parameter containing a user-defined string, like this:

package local:demo;

interface host {
  @deprecated(version = "1.1.0", message = "please use function `bar` instead")
  @since(version = "1.0.0")
  foo: func(msg: string);
  
  @since(version = "1.1.0")
  bar: func(msg: string);
}

That's currently not possible because we don't yet have a string syntax for WIT (did I get that right?). Given that @message was optional we decided to punt on that instead. I'm filing this issue to make sure we keep track that this is a feature we'd like to add, but are currently blocked on figuring out how we want to handle strings.

@yoshuawuyts yoshuawuyts added the enhancement New feature or request label Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant