3 ms·
Or to have a different opinion of significant I guess. Python has docstrings and list comprehensions and keyword arguments and generator functions and readable
by DanielStraight 17y ago
Or to have a different opinion of significant I guess.
Python has docstrings and list comprehensions and keyword arguments and generator functions and readable syntax. To me, these are all significant differences from Perl.
See also Eric Raymond's piece "Why Python?" at http://www.linuxjournal.com/article/3882 http://www.linuxjournal.com/article/3882
- jrockway 17y agoNot sure your list of differences is up to date. We have keyword arguments (with rich user-defined type constraints) and docstrings via Moose and MooseX::Declare. We have generator functions (actually, first-class continuations and coroutines) via the Coro module. I have never had trouble reading even very bad Perl code, so it seems to me like it is "readable". (There a few list comprehension modules on CPAN, but they are all implemented wrong. A correct implementation is not difficult, but I personally don't see the value and haven't bothered to implement it right.)
- DanielStraight 17y agoI'll add another feature that Python tends toward standardization and batteries included rather than modules. With the right modules, you can probably make Java look like Python, but that's not the point... to me at least. I'm explicitly talking about opinion here. I hope it's ok for me to have a different opinion.