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

Python and Rust have two fundamentally different philosophies. Python is all about quick and intuitive programming and it's pretty good at that, though in turn you can get more kinds of bugs and runtime errors that could have been avoided with proper type checking and other measures.

Meanwhile Rust avoids any kind of behaviour that isn't clearly visible in the code. That includes unambiguous syntax, like the mandatory curly braces for loops and conditions. And of course the semicolon as a clear separator, which comes in handy when iterators or the builder pattern are used.



That argument has the flaw of not working with Haskell, OCaml or F# ;)

Really, Rust only doesn't look like OCaml because less people would use it if it wouldn't have braces and semicolons.

Found this post, for example: https://news.ycombinator.com/item?id=5607912




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: