|
|
|
|
|
by the_af
401 days ago
|
|
Of course not everything can be encoded in types, and also YMMV regarding the specific language you're using. But you now why I asked the question: people who make claims like "types make only guarantees about the type of values" usually don't understand what modern type-checking can do or what can be encoded in types. People making these claims often believe type-checking is limited to validating that you only pass strings to a function expecting a string argument, or some minor variation of that. |
|