coding style - where to declare variables
Steven D'Aprano
steve+comp.lang.python at pearwood.info
Sun Jul 22 20:16:37 EDT 2018
On Sun, 22 Jul 2018 17:50:06 -0400, Dennis Lee Bieber wrote:
> On Mon, 23 Jul 2018 00:08:00 +0300, Marko Rauhamaa <marko at pacujo.net>
> declaimed the following:
>
>>I Java terms, all Python values are boxed. That's a very usual pattern
>>in virtually all programming languages (apart from FORTRAN).
>>
>>
> FORTRAN, C, COBOL, BASIC, Pascal, ALGOL, BCPL, REXX, VMS DCL,
> probably R, Matlab, APL.
>
> I never encountered the term "boxed" until trying to read some of
> the O'Reilly books on Java.
>
> In my world, Java and Python are the ones that are not "common".
Indeed. Its not just older languages from the 60s and 70s with value-type
variables. Newer languages intended as systems languages, like Rust and
Go, do the same.
--
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing
it everywhere." -- Jon Ronson
More information about the Python-list
mailing list