DocStringExtensions.jl icon indicating copy to clipboard operation
DocStringExtensions.jl copied to clipboard

different abbreviations for concrete and abstract types

Open lucaferranti opened this issue 2 years ago • 1 comments

as far as I can tell, there is only one abbreviation TYPES for types templates. I think it might be useful to have separate templates for abstract and concrete types, e.g. one might want to do the following

@template TYPES = """
                $(TYPEDEF)

                $(DOCSTRING)

                ## Fields
                $(TYPEDFIELDS)
                """

@template ABSTRACTTYPES = """
               $(TYPEDEF)

               $(DOCSTRING)
              """

lucaferranti avatar Dec 29 '22 16:12 lucaferranti

Seems reasonable to me.

MichaelHatherly avatar Jan 04 '23 09:01 MichaelHatherly