3 ms·
The arc one is also less powerful, because it uses different function invocations for different types of events. Actually, that would make it more powerful. Y
by stcredzero 17y ago
The arc one is also less powerful, because it uses different function invocations for different types of events.
Actually, that would make it more powerful. You can use polymorphism.
It's also likely more people will understand the python+pygame version. More people do currently understand the python version... hardly anyone uses Arc.
Missing the point. Conciseness is not best measured by eyes familiar with the language/library. It's best evaluated from the POV of the uninitiated. I have to parse and run a model to understand your first version. Your second version is as easily understandable as the Arc example in one way, but it's got a lot more pollution and an enforced higher line count.
I am answering as someone not well versed in either Python or Arc. (Actually a little more familiar with Python.)