upvote
But you can express elegance and beauty in any language!

For this, I don't think there are many people, if any who embody these concepts more than Don Knuth. And you know what language he chose for "The Art of Computer Programming" books? Assembly! He has also used Pascal, and C, neither are considered particularly elegant, but it doesn't matter, because the elegance is in the algorithms, not the language. In fact, one of the thing he is best known for, literate programming, could be seen as a testament on how little programming languages matter, by burying it within his prose.

reply
> There is such thing as neatness, elegance and beauty, especially in programming and mathematics.

I don’t even think of programs as code. Instead, it’s a sequence of actions on data. Kinda like open the file, search for the lines that contains this pattern, split it like this, sum the first item,… Expressing those in a programming language is fairly mechanical with slight adjustment according to the paradigm. But there is some effort spent there and the syntax can make it unpleasant.

Reading a program is a whole other matter. The easier a syntax make it to get the idea of a program, the better it is. I don’t like Rust because it’s full of compiler annotations and I don’t like some idiomatic techniques in other languages because they obstruct reading.

But I wouldn’t go to hate in both occasions.

reply