Top "Language-comparisons" questions

Questions comparing two or more programming or markup languages against each other.

YAML compared to XML

I read that after years yaml will be used instead of xml. Please compare the relative advantages and disadvantages of …

xml yaml language-comparisons
Is everything an object in Python like Ruby?

I read on another Stack Overflow question that Python was just like Ruby, as it relates to "everything's an object," …

python ruby object language-comparisons
What are the primary differences between Haskell and F#?

I've searched on the Internet for comparisons between F# and Haskell but haven't found anything really definitive. What are the …

haskell f# functional-programming language-comparisons
Does Python do variable interpolation similar to "string #{var}" in Ruby?

In Python, it is tedious to write: print "foo is" + bar + '.' Can I do something like this in …

python ruby string-formatting string-interpolation language-comparisons
What is the idiomatic way to slice an array relative to both of its ends?

Powershell's array notation has rather bizarre, albeit documented, behavior for slicing the end of arrays. This section from the official …

arrays powershell slice idioms language-comparisons
Equivalent of .NET's WebClient and HttpWebRequest in Java?

.NET has the HttpWebRequest and WebClient classes for simulating a browser's requests. I'd google it, but I'm not sure what …

java .net language-comparisons
What advantages does modern Fortran have over modern C++?

I'm trying to decide between Fortran and C++ for an application in scientific computing. It's not clear to me if …

c++ fortran language-comparisons
Haskell, Lisp, and verbosity

For those of you experienced in both Haskell and some flavor of Lisp, I'm curious how "pleasant" (to use a …

haskell comparison lisp language-comparisons
Ruby equivalent for Python's "try"?

I'm trying to convert some Python code into Ruby. Is there an equivalent in Ruby to the try statement in …

python python-3.x ruby try-catch language-comparisons