|
|
|
|
|
by sklogic
3782 days ago
|
|
Hindley-Milner is already quite Prolog-like. But you're right, CLP(fd) rocks for typing. My usual approach to implementing a type system is to derive a flat list of Prolog equations out of the AST and leave it to Prolog for solving. If you ask what to do with error messages, I've got a comprehensive answer, but it is not for a mobile phone typing. |
|