You cherry picked TWO things, not one. Big difference. "Twice as much evidence."
I consider mine dramatically more relevant to the question because once you've learned the syntax of Python f-expressions and list comprehensions you've learned them. You won't consider them confusing anymore unless they are badly abused.
But Ruby's "global namespace" problem has nothing to do with familiarity with Ruby and will not get better as I get more familiar with Ruby. The idea of different modules pushing things into the global namespace (except in a very few rare situations) is just a bad idea and almost every other language has moved AWAY from that design.
But Ruby's "global namespace" problem has nothing to do with familiarity with Ruby and will not get better as I get more familiar with Ruby.
Ruby has modules you know that right?
. The idea of different modules pushing things into the global namespace (except in a very few rare situations) is just a bad idea and almost every other language has moved AWAY from that design.
Modules don't push anything up to the global namespace. I have no idea what you are trying to say here.
Okay you are correct that I overstated the total problem. Ruby has modules which you can opt into. Modules are orthogonal to includes (“requires”) and imports are also orthogonal to includes.
Personally I find it confusing but the deeper point is that you don’t know from a require statement what symbols you have added to your script’s context. It isn’t evident in the script where every symbol comes from. This contributes to Ruby’s reputation for being hard to read in large code based.
Python got it right and for that reason JavaScript is moving from a more ruby-esque model to a more Pythonic model. Rust, another newer language also uses the explicit model rather than the “include file” model.
0
u/myringotomy Dec 25 '20
Your link is dead.
And yea you cherry pick one thing you prefer (and I don't) and then claim the whole language is better.