Re: [code-quality] Variable declarations + pyflakes

2013-05-27 Thread Marc 'BlackJack' Rintsch
On 27/05/13 21:40, François Pinard wrote:> Raphael Clifford writes: > >> Is it possible for use pyflakes with some suitably defined annotation >> to do something equivalent? Getting python devs to accept the >> suggestion for the core python language more not be at all plausible. > > Well, it mig

Re: [code-quality] Variable declarations + pyflakes

2013-05-27 Thread François Pinard
Raphael Clifford writes: I did not closely follow the previous conversation, please forgive me if I'm off topic. > Is it possible for use pyflakes with some suitably defined annotation > to do something equivalent? Getting python devs to accept the > suggestion for the core python language more

Re: [code-quality] Variable declarations + pyflakes

2013-05-27 Thread Peter Ludemann
Wouldn't static type-inferencing of Python give the same benefits, without forcing programmers to write "Java-like" declarations? Type inferencing would catch potential uninitialized variables, calling non-existent methods, etc. ... and combined with a tool like lib2to3 could be used to automatical

Re: [code-quality] Variable declarations + pyflakes

2013-05-27 Thread Raphael Clifford
The email below was sent before it was finished. var foo = 15 [...] var foo = 10 should return an error. foo = 15 should return an error if foo was not declared before. The second answer of http://programmers.stackexchange.com/questions/15468/what-are-the-drawbacks-of-pytho

[code-quality] Variable declarations + pyflakes

2013-05-27 Thread Raphael Clifford
I have recently been talking to friends/colleagues about their reasons for not using python for large projects (say from a thousand lines of code and with at least three people contributing). One of the problems that comes up time and again is the difficulty in debugging python code and in particul