Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I prefer Rust syntax to Python's purely on the grounds that Rust is a curly-brace language and Python is an indentation-sensitive language. I like it when the start and end of scopes in code are overtly marked with a non-whitespace character, it reduces the chances of bugs caused by getting confused about what lines of code are in what scope and makes it easier to use text editor tools to move around between scopes.

Beyond that issue, yeah most of Rust's syntactic noise comes from the fact that it is trying to represent genuinely complicated abstractions to support statically-checked memory safety. Any language with a garbage collector doesn't need a big chunk of Rust's syntax.





The rust syntax problem is not the braces but about all the #[()] || ::<<>> ‘stuff.

Attribute, lambda and turbofish?



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: