ziprandom / cltk

A crystal port of the Ruby Language Toolkit

Home Page:https://ziprandom.github.io/cltk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow AST values to have defaults

watzon opened this issue · 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.