kengorab/abra-lang

Treat _ as a special identifier

Closed this issue · 0 comments

It's common practice in many languages (eg, rust, javascript) to use _ as a variable name that we want to ignore. Right now, if we wanted to do that, it'd result in an error since it'd be a duplicate binding. Let's make this code work:

val _ = 123
val _ = "456"