Re:Ask HN: What are the best programming languages?
by AnimalMuppet on Tuesday August 16, 2016 @12:28PM
(#12298525)
So, what languages are best if you don't care about actually doing anything with them? I suggest that your question is almost a category error - programming languages are tools to be used more than they are art pieces to be admired.
That said, I have a list of candidates. Or rather, I have pieces of languages that I think fit:
Lisp macros.
Haskell's type system (but not using monads for everything - though that may be a consequence of the type system).
C++'s RAII paradigm (and destructors).
Perl's natural language approach. No, really. When programmers talk to each other, they say things like "Read in a line of text. If it ends in a newline, remove it." If you try to talk to the compiler that way, it says, "Read in a line of text from where? If it ends in a newline? If what ends in a newline?" But Perl lets you program that way. Read in a line of text? Well, since you didn't specify from where, that means from the default place, which is a file handle that loops through all the files that were in the command line. Put the line where? You didn't specify, so it goes into the default variable. If it ends in a newline? You didn't specify what, so you must mean the default variable, which conveniently is where we just stuck that line of text..."
That said, I have a list of candidates. Or rather, I have pieces of languages that I think fit:
Lisp macros.
Haskell's type system (but not using monads for everything - though that may be a consequence of the type system).
C++'s RAII paradigm (and destructors).
Perl's natural language approach. No, really. When programmers talk to each other, they say things like "Read in a line of text. If it ends in a newline, remove it." If you try to talk to the compiler that way, it says, "Read in a line of text from where? If it ends in a newline? If what ends in a newline?" But Perl lets you program that way. Read in a line of text? Well, since you didn't specify from where, that means from the default place, which is a file handle that loops through all the files that were in the command line. Put the line where? You didn't specify, so it goes into the default variable. If it ends in a newline? You didn't specify what, so you must mean the default variable, which conveniently is where we just stuck that line of text..."