Hi,
Happy to announce a new open-source Clojure tool
to generate core.typed type annotations from tests. It's part of a
# What is it?
This tool infers top-level annotations by instrumenting
your code, running tests, and finally inserts inferred
annotations directly in your source code.
You can read more about the ideas behind the tool
here.
# Prototype: Write Tests, Get Types!
The latest core.typed release contains a
prototype for Automatic Annotation inference.
# Crowdfunding
Automatic Annotations for Typed Clojure. The money
will help me keep working on Typed Clojure and travel
to industry conferences.
I will be writing more about how this tool works, and
the general applicability of the infrastructure its
based on.
For example:
- clojure.spec generative tests can help generate type annotations, and
- the infrastructure could even be repurposed to generate clojure.spec specs!
- mutually recursive map structures can be inferred
- ideas for polymorphic inference
There are only 7 days left and we need $7,500 to
reach our goal. Please help by contributing!
Thanks for your support!
Ambrose