Brython - Python in the browser

Chris Angelico rosuav at gmail.com
Thu Dec 20 04:56:25 EST 2012


On Thu, Dec 20, 2012 at 8:37 PM, Pierre Quentel
<pierre.quentel at gmail.com> wrote:
> I'm afraid I am going to disagree. The document is a tree structure, and today Python doesn't have a syntax for easily manipulating trees. To add a child to a node, using an operator instead of a function call saves a lot of typing ; <= looks like a left arrow, which is a visual indication of the meaning "receive as child". |= doesn't have this arrow shape

This is the reasoning that gave us the C++ stdio system, where:

cout << "Hello, world!\n";

is the way to make console output. Quite frankly, I don't like it;
when I write C++ code, I use printf same as in C. I'd much rather work
with methods than with operators that try to look like the flowing of
data, but actually have a quite different meaning.

ChrisA



More information about the Python-list mailing list