|
|
|
|
|
by nextaccountic
27 days ago
|
|
About static typing and type inference: what does it do with code that it can't infer? It turns into a dynamic type ala Typescript, or it gives a type error? I mean it must employ gradual typing, right? So that it can interface with existing code that is untyped |
|
Code that is outside of the purview of Coalton—raw Common Lisp code—is run in explicit (LISP ...) forms [0] which require the user to annotate the type and they add dynamic type checks to ensure the enclosed code meets the contract the programmer specified (unless UNSAFE is used [1]).
[0] https://coalton-lang.github.io/manual/operators/lisp/
[1] https://coalton-lang.github.io/manual/operators/unsafe/