It’s a sensitive topic, where all have their own prefs and I don’t mean to start a holy war, just wonder how many of us here would like to have an option to write with indents instead of curly braces.
We’ve seen many languages with meaningful indents get fantastic adoption: Python, CoffeeScript, Haskell, F#. The primary reasons behind that are the beauty of syntax and conciseness. Indents force the programmer to write readable code that almost always explain itself and doesn’t require comments.
Now we all know that it’s not gonna happen in the v.1.0 and curly braces will always be the standard in Rust. What we can hope is that Mozilla adds an option to the compiler to compile rust files with a special extension (*.rt for example) where all curly braces are optional and indents are meaningful.
If the option to switch between curly braces and meaningful indents is implemented, Rust will become the first language which have done so. Along with ownership/borrowing concept it will become the greatest selling point of Rust.
I’d like to hear your opinion about this idea. Would you be excited to have this option implemented in Rust or wouldn’t you?
Thank you!
Elijah