Sujet : Re: Python (was Re: I did not inhale)
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.unix.shell comp.unix.programmer comp.lang.miscDate : 27. Aug 2024, 03:49:19
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vajerf$2qjbn$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
User-Agent : Pan/0.160 (Toresk; )
On Mon, 26 Aug 2024 23:51:40 +0100, Bart wrote:
This might [...] the human reader but the redundancy really needs to be
supported by the language.
Consider what I mean by “redundancy”: it means the structure of the code
is expressed two different ways.
In a conventional language with statement bracketing symbols, the compiler
ignores the indentation, but you use that to delineate the same structure
as defined by the actual language symbols, thereby providing redundancy to
the human reader.
In Python, the compiler goes by the indentation, so I add standins for
statement bracketing symbols in the form of “#end” comments: these are
ignored by the compiler, but I use that as an alternative, redundant way
of delineating the same program structure to the human reader.