User loginNavigation |
Flexible Addition of Static Typing to Dynamically Typed ProgramsAn idea occurred to me the other day, and I was wondering if anyone has seen anything like it. I'm sure I can't be the only one to have thought of this. The idea is to take the type annotations that we normally have in statically typed programs and place them in a separate file. A program in a language which allows this would look like it was dynamically typed, but static typing could be added progressively by adding declarations in a separate file. A good IDE could present a merged view of the source. The thought behind this is that languages seem to mix two concerns in the program text: 1) the form of the program, and 2) an error detection regimen enforced by the compiler. It seems that they could be decoupled. A piece of program text could, for instance, have one set of types in one program, and another set of types in another. Note that this has nothing to do with type inferencing. The idea is do to this for a "run of the mill" dynamically typed language. Here's a link to a blog describing the idea. I apologize for the lame attempts at entertainment at the beginning of the blog. They, regretfully, obscure my point a bit. By mfeathers at 2006-04-12 13:56 | LtU Forum | previous forum topic | next forum topic | other blogs | 9109 reads
|
Browse archives
Active forum topics |
Recent comments
22 weeks 6 days ago
22 weeks 6 days ago
22 weeks 6 days ago
45 weeks 17 hours ago
49 weeks 2 days ago
50 weeks 6 days ago
50 weeks 6 days ago
1 year 1 week ago
1 year 6 weeks ago
1 year 6 weeks ago