Skip to content

abbreviated syntax for docstrings #8965

@stevengj

Description

@stevengj

Rather than @doc docstring -> foo(x) = ..., we have discussed allowing docstring foo(x) = ... in #8791. i.e. treat any literal string (including string macros!) immediately preceding a function declaration (either one-line or function foo...) as shorthand for @doc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsThis change adds or pertains to documentationparserLanguage parsing and surface syntax

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions