|
|
|
|
|
by joshAg
4870 days ago
|
|
the syntax is much more regular and more verbose, but that can be a good thing. The regularity means that it's easier to remember what's supposed to come next/how to do something, and the verbosity means that there's less obfuscated phrases. Granted, ruby and python aren't as bad as perl, but they definitely aren't as regular as java either. Of course, once you start getting into advanced topics, all that can go out the window, but at that point we aren't talking about a newbie anymore, so what we/they will expect from a language will be different. |
|
I wouldn't mix those two when making a comparison to Perl.
As an example, there are like four different ways to write a simple 'if' statement in Ruby, with some blurring the difference between that statement and conditional expression (ternary operator in C-like languages). In Python, there is just one 'if' statement which is also clearly distinct from 'if-else' conditional expression.