Re:[Python-ideas] List Revolution
by pyre on Saturday September 10, 2011 @03:16AM
(#2981069)
1) It's not like the docs don't recommend against it.
2) As of Perl 5+ it's evaluated at compile-time rather than run-time, which is not as bad as if you could flip back and forth at runtime. Though you can use 'local' to lexically scope its effects -- hilarity ensues as you hand off said code to someone else for maintenance.
3) It's from a different era. As per the docs:
Default is 0, but you could theoretically set
it to 1 to make Perl behave more like awk (or
Fortran)
It's there to help you emulate awk or Fortran... definitely targeted at today's young programmers. ;-)
[ Though the core of SciPy/NumPy is notably written in Fortran. Not quite as dead as some would have you believe. ]
2) As of Perl 5+ it's evaluated at compile-time rather than run-time, which is not as bad as if you could flip back and forth at runtime. Though you can use 'local' to lexically scope its effects -- hilarity ensues as you hand off said code to someone else for maintenance.
3) It's from a different era. As per the docs:
It's there to help you emulate awk or Fortran... definitely targeted at today's young programmers. ;-)[ Though the core of SciPy/NumPy is notably written in Fortran. Not quite as dead as some would have you believe. ]