ark-lang / ark

A compiled systems programming language written in Go using the LLVM framework
https://ark-lang.github.io/
MIT License
682 stars 47 forks source link

Remove requirement for mut to be present if var doesn't have initial value #729

Closed MovingtoMars closed 8 years ago

MovingtoMars commented 8 years ago

Right now, we require variables to be declared mut if they have no initial value. I think we should change this, since we made it so that a var with no initial value is zeroed. I just thought of this when looking at Option.unwrap().

felixangell commented 8 years ago

I'm ok with this