|
|
|
|
|
by john567
1544 days ago
|
|
I'm trying to design a programming language that can be compiled into C99 and it's not at all clear to me how you represent these things statically. The idea from a programming point of view is really nice and in a dynamic programming language environment everything is an object and you can pass whatever through any function. This doesn't work all that well if you want to translate your program into a statically typed environment, in a cost effective way. You need some way to reason about the type information that hopefully doesn't create memory allocations all over the place. This can be done by introducing tagged data types but it can also lead to a combinatorial nightmare where you need to generate a lot of extra code. In general, I don't think all this complexity is warranted in a statically typed environment and depending what you are doing this doesn't end up being that important. Even if, it's a nice to have, it's mostly that, a nice to have. |
|