|
|
|
|
|
by gizmo686
3268 days ago
|
|
>On the other hand, this means that typed systems are in some sense strictly less expressive than their untyped counterparts. It would therefore be interesting if somebody found an expression which was both (i) meaningful and (ii) only expressible in an untyped language. You would then have an argument for untyped languages :-) Any type system will reject some correct program. As a trivial example, consider: if( f() ):
1 + "a"
else
1
This is a perfectly fine expression iff the result of f() is always false. |
|