

41·
14 hours agoCaring about the syntax of a programming language is a sign that you haven’t properly engaged with it. While not completely unimportant, what matters at the end of the day is the languages semantics. If you program in rust for more than ‘a few hours’ you will stop thinking about the syntax directly. Trust me, I do a fair bit of work in the cmake language, you can learn to work with any syntax.
There’s a lot here that I could comment on, but I’m particularly fascinated that you make a big deal about const by default.
First of all, it’s not particularly good evidence that rust is functional, you could just as easily have a const-by-default java or c. Rust still has mutable data structures which is decidedly non-functional. I do actually think that rust is more inspired by fp than a lot of other languages so it’s not even that you’re completely wrong here, it’s just an odd example.
Secondly, do you actually think that const variables is a bad default? Personally I find that it makes it code easier to read when the author is explicit that a variable is going to be mutated down the line because it makes the intention clearer. It also makes it easier for the compiler to make certain optimizations which is significant in a low-level language.