Closed runsisi closed 2 months ago
@myzie thanks!
is it possible risor could support blank identifier _
?
func main() {
x := `
_, a := [1, 2]
_, b := [98, 99]
`
_, err := risor.Eval(context.Background(), x)
if err != nil {
fmt.Println(err)
}
}
atm the code above has compile error:
compile error: variable "_" already exists
Thanks for filing the bug report @runsisi.
Yeah, the _
behavior should be supported. I'll look at this.
example 1
example 2
i think the assignment op in the first example should be allowed?