Skip to content

Allow AST values to have defaults #4

@watzon

Description

@watzon

It would be really handy if you could provide default values for values listed in an AST node. Something like:

class Def < CLTK::ASTNode
  values({
    name: String,
    visibility: Bool = Visibility::Public
  )}
end

or can you already? Sorry, the docs are lacking a little.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions