How should this be written in crystal 0.34 ?
What is this line doing ?
def list(kind = Symbol?nil)
How should this be written in crystal 0.34 ?
What is this line doing ?
def list(kind = Symbol?nil)
https://crystal-lang.org/reference/syntax_and_semantics/literals/symbol.html
However, that line isn’t valid syntax.
The last commit to that repo was update for Crystal 0.11.0
. I’d imagine that was some old syntax that is no longer supported. The current way to write that would be like def list_paths(kind : Symbol? = nil)
.