wizeman wrote:
> Jeremy Dunck wrote:
>> IronPython -is- Python, runs on .Net, and is coming along nicely.
> 
> Yes, IronPython is also cool. You know when you look at something and
> you say - wow, this is a great idea and it would be great if everyone
> realizes that? I had that feeling with Python right away, but only in
> the last few years it started to be considered a "real" language.
> 
> One thing that I consider a good idea is static typing combined with
> type inference. It just makes for good programming practice and doesn't
> require verbose syntax. You can do things like:
> 
> def f(y as int):
>         x = y * 3
>         return x + y
> 
> and the compiler figures out the type of 'x' and the return type of
> 'f()' automatically, or you can specify it yourself if you want to. And
> it can catch a lot of errors, especially in big projects.
> 

 >>> def f(y):
...     x = y * 3
...     return x + y
...
 >>> f(5)
20
 >>> f('_django_')
'_django__django__django__django_'
 >>>

you know...this whole 'static typing' thing is a little a  double-edged 
sword, isn't it? :))


gabor

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to