Ask HN: What's the most beautiful language in your opinion? Why?
This may have been posted before (I couldn't find a similar post), but I'm curious and looking for some reasoned opinions. Of course, there is no real right or wrong answer.
I'm asking also because as a bit of a side project, I've been making a simple interpreter for a very basic scripting language (that I'm making up as I go along) in JavaScript.
27 comments
[ 2.6 ms ] story [ 69.1 ms ] threadAll that matters not, it's a language I love, however it fares.
With postconditionals, and heredocs, and references to unfurl,
my answer is simple, the language is Perl.
Perl does gives you a ton of rope to hang yourself with though.
Oh, and Python is rather nice too.
For all major languages, there is a niche, where you should use it above all other languages. For toy languages, the niche is usually something like "the single author enjoys developing it". For academic languages, the niche is something like "showcases concept X concisely".
You want to design and implement a small scripting language? Look at Lua, TCL, Forth, Squirrel, sh, Scheme, Javascript and IO.
It's easier in many respects to romance languages because when conjugating verbs you don't have to also conjugate possessive personal pronouns which you do with most other languages of European origin. And yet, in my opinion, it is more expressive than languages such as Chinese which don't have proper pronouns at all. Because of its rich vocabulary, it is also very easy to express ideas that may be difficult to express in other languages.
Oh, and Python is rather nice too.
However, my mother tongue is german, which is nicer, if you talk about technical stuff, because you can compose nouns so nicely. On the downside, we cannot convert nouns into verbs so easily (e.g. to google).
It's so compact, that when larger blocks work, it's almost magical. It's really a wonder to see a great Scheme/LISP hacker do their magic.
The LISP family also rather elegant.
I've also heard interesting things about Sanskrit, for the same purpose.
As far as talking to a machine I would select Ruby. A deciding factor in recognizing the presence of beauty is the alluring attraction to interact. Ruby's language makes the odds of scoring on your first date with her a real possibility.