[KDE Dot News]
 faq
 flatforty
 contribute
 subscribe
 configure
 search
 rdf

 main
 parent
 thread


Re: What bindings in general need is:
by Philippe Fremy on Monday 20/Sep/2004, @13:26
I agree 100%. For every big python project, the dynamic typing becomes a problem. I enforce type arguments on all my functions but that's clearly not enough.

Actually, there are very few circumstances where I would change the type of my variable dynamically. I consider that bad programming style. So a static typing system would be ok and certainly remove lot of problems.
  Related Links
 ·   Articles on Developer
 ·   Also by Philippe Fremy
 ·   Contact author

Thread Threshold:

The Fine Print: The following comments are owned by whomever posted them.
( Reply )

Re: What bindings in general need is:
by Corbin on Monday 20/Sep/2004, @14:06
What about at like the start of the Python script you some way declare that all variables must be declared. And then create a new 'dynamic' type so in case you want some variable to still be dynamic and all it could be. Also if in the start it isn't declared that all variables must be declared, it acts like it does now.

That way everyone wins! I think...
[ Reply To This | View ]
  • Re: What bindings in general need is:
    by Philippe Fremy on Monday 20/Sep/2004, @14:16
    Well, say that go Guido ! Next time I'll interview him, I'll ask for sure :-)
    (shameless plug: http://www.freehackers.org/fosdem2002/guido.html)
    [ Reply To This | View ]
  • Re: What bindings in general need is:
    by Rayiner Hashem on Monday 20/Sep/2004, @17:14
    That's not unlike what soft-typing languages do. In those languages (Common Lisp, many Schemes, Dylan), a type declaration is an optional constraint. If you put it in, it can help the compiler optimize the code, and check for errors. If you leave t out, you can still use full dynamicity. The usual development style with such languages is you write your "prototype" in a fully-dynamic, general manner, and then gradually convert that into your production code by adding declarations, refactoring, and optimizing.
    [ Reply To This | View ]
  • Re: What bindings in general need is:
    by Shulai on Monday 20/Sep/2004, @18:26
    That's in my list of reasons I not really like python.
    Also you can count the sloppy OO style, and even the tabbed blocks, even admitting it is nice to force people to write cleaner code).
    I like more Pike, sadly it is soooo unknown and underused...
    [ Reply To This | View ]

 
The Fine Print: The previous comments are owned by whomever posted them.
( Reply )

  "Feature freeze means that everyone has a bad feeling when they change something, almost nothing more." -- Stephan Kulow
KDE®, "K Desktop Environment", "KDE Dot News", "got the dot?" and the KDE Logo® are trademarks or registered trademarks of KDE e.V. in the European Union, the United States and other countries. All other trademarks and copyrights on this page are owned by their respective owners. Comments are owned by the poster. The rest: Copyright © 2000-2008 KDE e.V. for The KDE Project. For further information or comments on this site, please contact the Webmaster.
[ home | post article | flat forty | subscribe | search | rdf ]