Skip to content

Reference Manual: Multiple delclarations not documented #379

@WardBrian

Description

@WardBrian

Summary:

Multiple declarations should be documented in the reference manual and user's guide.

Description:

PR stan-dev/stanc3#670 added the ability to write declarations like

real x, y;

Not only is this feature useful and should be shown off, there are also some questions or edge cases it would be good to document up front. For example, the PR shows you can do assignment at the same time, but can you do constraints, etc? Also, is the full form (without constraints) available for local variables?

  • add documentation to section 5 of reference manual, "Data Types and Declarations" covering boundary conditions
  • extend BNF grammar for language to include the syntax
  • add explanation and example use case to user's guide

I would be happy to write it up if @rybern could give a brief overview of what is or isn't supported

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions