A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2003-January/032682.html below:

Syntax-wise [Python-Dev] Property syntax

Syntax-wise [Python-Dev] Property syntax Syntax-wise [Python-Dev] Property syntaxSamuele Pedroni pedronis@bluewin.ch
Fri, 31 Jan 2003 23:19:24 +0100
----- Original Message -----
From: "Samuele Pedroni" <pedronis@bluewin.ch>
> So syntax-wise I personally would go for:
>
> do iterate(lst): (x):
>   print x
>
> introducing a new-keyword 'do' (or something similar) and that would imply
> inline-suite-like scoping.
>

this clarify scoping, still while what 'return' should do is more or less clear
cut (non-local return), what break or continue should do is ambiguous:

for lst in lists:
 do iterate(lst): (x):
    if not x: break # should break 'do' or 'for'
    print x

vs

for lst in lists:
 do synchronized(lock):
    if not x: break # should probably break 'for'
    print x

so maybe we need a way to differentiate also this, so two different keyword

regards.









RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4