Skip to content

use Julia syntax to document optional arguments #4902

@stevengj

Description

@stevengj

The Julia manual often uses the syntax foo(a [, b]) to denote optional arguments. Now that Julia has its own optional-argument syntax, wouldn't it be better to use this in the documentation, i.e. write foo(a, b=c; kw=foo)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsThis change adds or pertains to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions