|
|
|
|
|
by filipncs
4665 days ago
|
|
You mention generating core.typed annotations from schemas, to allow for some compile-time checking. I would have thought that this would be extremly hard to automate for non-trivial schemas, or at least that core.typed would have a hard time proving that return values match a schema. Is this only for a subset? |
|
One of the problems with gradually annotating an untyped namespace with core.typed is we immediately have to be very accurate with our type annotations.
However if the namespace is completely "schema'ed", we can assume functions simply take `Any` as arguments and rely on Schema to regain type information.
This could be a very nice way to work.