You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enable WIT gates to take user-defined strings as arguments #388
Following #377, we'd like to be able to write @deprecated with a message parameter containing a user-defined string, like this:
packagelocal:demo;interfacehost {
@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.
Activity