4 ms·
Do you honestly think "readability" is only about whitespace and semicolons? Compare namespace HelloWorld { class Hello {
by ehsankia 3y ago
Do you honestly think "readability" is only about whitespace and semicolons?
Compare
namespace HelloWorld
{
class Hello {
static void Main(string[] args)
{
System.Console.WriteLine("Hello World!");
}
}
}
to
print("Hello World!")
and
std::ifstream t("foobar.txt");
std::stringstream content;
content << t.rdbuf();
to
with open('foobar.txt') as file_object:
content = file_object.read()
How can you honestly look at any of that and claim Python isn't far more readable. It literally reads like English. "With open foobar.txt as file object, content equal file object read". Compare that to whatever monstrosity the ifstream string stream << rdbuf crap is...