|
|
|
|
|
by antonvs
867 days ago
|
|
It definitely is stringly typed. It's just that it's a very normalized example of it, that people don't think of as being an antipattern. If you want to implement what Yaron Minsky described as "make illegal states unrepresentable", then you use a username type, not a string. That rules out multiple entire classes of illegal states. If you do that, then when you compile your program, the typechecker can provide a much stronger correctness proof, for more properties. It allows you to do "static debugging" effectively, where you debug your code before it ever even runs. |
|