Pragmatic Prose
Sunday, July 13, 2008
Type Inference Only Works at the Local Level
http://erikengbrecht.blogspot.com/2008/07/love-hate-and-type-inference.html
Type inference is great, locally that is. When it's global it's a mess. That's why large programs are easier to maintain and refactor in C# than in Python.
Conversely, scripts are much better in Python than in C#.
So when right a short and dirty script, Python is fantastic. When writing something a little bigger, the statically typed languages start to win. There is no "Static is better or Dynamic is better" only what locally optimal.
I think C# 3.0 is blurring the line somewhat with the best of both worlds. It's locally type inferred (or it can be if you want it that way) and globally static.
C#
|
Python
Sunday, July 13, 2008 8:06:02 PM (Central Standard Time, UTC-06:00)
Comments [0]
Name
E-mail
Home page
Remember Me
Comment (HTML not allowed)
Enter the code shown (prevents robots):
© Copyright 2008 Chris Weber
Theme design by
Bryan Bell
newtelligence dasBlog 1.9.6264.0
| Page rendered at Saturday, November 22, 2008 4:17:45 PM (Central Standard Time, UTC-06:00)
On this page....
<
November 2008
>
Sun
Mon
Tue
Wed
Thu
Fri
Sat
26
27
28
29
30
31
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
1
2
3
4
5
6
Search
Navigation
Home
newtelligence AG
dasBlog
SourceForge
Scott Hanselman
Omar Shahine
Categories
ASP.NET
biz
Books
C#
Design
firefox
General
Greasemonkey
hacks
Hardware
Implementation
Java
javascript
Languages
Laszlo
Money
organization
personal
PowerShell
Productivity
Prometheus
Python
Ruby
Ruby on Rails
SOA
SocioEcon
SQL
Tools
Web
Windows
Blogroll
Healthy Reader
Pop Therapy
Slippery Brick
The Art of Ware
Wealthy Reader
What's your 20
Sign In