[Python-ideas] [Wild Idea] Static Ducks

Imri Goldberg lorgandon at gmail.com
Sat Sep 19 18:46:34 CEST 2009


On Sat, Sep 19, 2009 at 11:19 AM, Dj Gilcrease <digitalxero at gmail.com>wrote:
[snip]

> Design Goals:
>    The new syntax should
>        * Be simple to read
>

Personally, I'm -1 on this. Still, if you're already changing the syntax,
you don't need the extra punctuation ( '$' in your examples). This could
work just as well without them:


> Example:
>    $int count = 0
>
>    $bool def check($string testValue):
>        return testValue.lower() == "true"
>

int count = 0
bool def check(string testValue):
    return testValue.lower() == "true"

AFAIK, since today all these cases generate syntax errors, they are pretty
unambiguous.

Cheers,
Imri

-- 
Imri Goldberg
--------------------------------------
www.algorithm.co.il/blogs/
--------------------------------------
-- insert signature here ----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20090919/28209579/attachment.html>


More information about the Python-ideas mailing list