PDA

View Full Version : Optional Static Typing in Python - language designer speak his mind



pmasiar
January 5th, 2007, 05:04 PM
For you lovers of static typing, Guido plans Optional Static Typing (http://www.artima.com/weblogs/viewpost.jsp?thread=85551). Py3k beta is coming this year. I am looking forward to it!

Couple other interesting threads about language design I dug out from Guido's blog:

Language Design Is Not Just Solving Puzzles (http://www.artima.com/weblogs/viewpost.jsp?thread=147358)
The Harry Potter Theory of Programming Language Design (http://www.artima.com/weblogs/viewpost.jsp?thread=123234)
Adding Optional Static Typing to Python -- Part II (http://www.artima.com/weblogs/viewpost.jsp?thread=86641) - about syntax and simplicity
The fate of reduce() in Python 3000 (http://www.artima.com/weblogs/viewpost.jsp?thread=98196) - why to remove language features. Lambda was later decided to live again.

gummibaerchen
January 6th, 2007, 02:46 AM
I think that would confuse many newcomers, when they look at some program who use that.

Why not just leave it the way it is?

pmasiar
January 6th, 2007, 04:28 AM
I think that would confuse many newcomers, when they look at some program who use that.

Why not just leave it the way it is?

Well did you read Guido's reasoning? It is:

1) Optional

2) only for people who needs it, like some frameworks, who implement it each own way.

But for people around us addicted to static typing, it might add warm fuzzy feeling of Big Compiler checking lovingly their types :-)

Van_Gogh
January 6th, 2007, 06:14 AM
For you lovers of static typing, Guido plans Optional Static Typing (http://www.artima.com/weblogs/viewpost.jsp?thread=85551). Py3k beta is coming this year. I am looking forward to it!


FWIW, That article is rather old, and I don't think that the plan currently is to include optional static typing in Python 3.0. Guido has a presentation on it (can be found on Google Video) and I don't recall him mentioning static typing.

This is all from memory though...

gummibaerchen
January 6th, 2007, 02:38 PM
Well did you read Guido's reasoning? It is:

1) Optional

2) only for people who needs it, like some frameworks, who implement it each own way.

But for people around us addicted to static typing, it might add warm fuzzy feeling of Big Compiler checking lovingly their types :-)

Yeah, I read his articles. But I would not like that in Python (as I said, for the newbies).
And would it help in any way? Couldn't read anything about speed improvements.


FWIW, That article is rather old, and I don't think that the plan currently is to include optional static typing in Python 3.0. Guido has a presentation on it (can be found on Google Video) and I don't recall him mentioning static typing.

This is all from memory though...
I hope you're right ;)

Wybiral
January 6th, 2007, 11:09 PM
Well, you know me... I think it's a good idea. The programs will look much more laid out and it will be more clear what everything is. The syntax looks funny, but I-for-one think it's a good idea.