Liste des Groupes | Revenir à cl misc |
Lawrence D'Oliveiro <ldo@nz.invalid> writes:
[...]Think about why you bother to indent code in languages where the
compiler ignores such indentation anyway: it means you are expressing
the structure of code in two different ways, one via statement
brackets, and the other via indentation. This redundancy aids in
understanding that the code does what you think it does.
>
Python gets rid of this redundancy, by having the compiler take notice
of the whitespace and removing the statement bracketing symbols. So I
put it back, by adding statement bracketing symbols that the compiler
ignores.
You might find Bython useful.
https://github.com/mathialo/bython
(I don't, but you might.)
Les messages affichés proviennent d'usenet.