cltk icon indicating copy to clipboard operation
cltk copied to clipboard

Allow AST values to have defaults

Open watzon opened this issue 6 years ago • 0 comments

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.

watzon avatar Jun 23 '19 01:06 watzon