Slice currently allows you two different ways to place a doc-comment on the fields of a variant:
enum MyEnum {
MyVariant(
/// I can place a doc-comment directly on my field.
name: string
)
}
and
enum MyEnum {
/// @param name: I can place a doc-comment like this too.
MyVariant(name: string)
}
I propose we drop support for one of these to simplify the syntax, and the information we need to transmit to code-generator plugins, and of the two, I think we should drop support for the first syntax (placing comments directly on fields).
Slice currently allows you two different ways to place a doc-comment on the fields of a variant:
and
I propose we drop support for one of these to simplify the syntax, and the information we need to transmit to code-generator plugins, and of the two, I think we should drop support for the first syntax (placing comments directly on fields).