How clean/elegant is Python's syntax?
Chris Angelico
rosuav at gmail.com
Thu May 30 13:50:06 EDT 2013
On Fri, May 31, 2013 at 3:46 AM, Ma Xiaojun <damage3025 at gmail.com> wrote:
> On Fri, May 31, 2013 at 1:28 AM, Chris Angelico <rosuav at gmail.com> wrote:
>> for (int i=0;i<nfoo;++i) if (foo[i].marker)
>> {
>> //do something with foo[i]
>> }
>
> This is interesting!
Yeah, but that's C++. It won't work in Python without this directive:
from __future__ import braces
ChrisA
More information about the Python-list
mailing list