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.