Licorne is an experimental programming language exploring refinement types and language-based support for lightweight verification
// momentum
// why it's here
- Active: last commit today
- Built almost entirely by one person
- Health 87/100 with only 8 stars
- 23 open issues handled by one or two people
// how to help
// readme
The Licorne programming language π¦
Licorne is an experimental programming language exploring refinement types and language-based support for lightweight verification. Its syntax is heavily inspired from Kotlin, of which Licorne can be considered a dialect. Beside Kotlin, Licorne draws some inspiration from Scala, which is also the implementation language of the compiler.
Some of Licorneβs features:
- Refinement types:
Int with it % 2 == 0 - Dependent integer range types, treated as a restricted form of refinement types:
[0 ..< array.length()] - Nullability aware types (non-nullability is partly treated as a refinement):
T? - Function-wide bidirectional type inference (see for instance the
reverseandfiltermethods in the OOP lists example) - Smart casts (think of Kotlinβs smart casts, but generalized to refinement types)
- Automated type simplification
- Constrained generics, with covariance and contravariance:
Foo[out/in TypeParam : UpperBound super LowerBound](note that unlike Kotlin, Licorne uses square brackets instead of angleβ¦