Skip to main content

4 posts tagged with "language"

Posts about the Acorn language, like new keywords or syntax.

View All Tags

Square Brackets

Kevin Lacker
Generalist

We're making a big change to the Acorn syntax: using square brackets for type parameters, instead of angle brackets.

Before:

inductive List<T> {
nil
cons(T, List<T>)
}

After:

inductive List[T] {
nil
cons(T, List[T])
}

Extending Typeclasses

Kevin Lacker
Generalist

Typeclasses in Acorn provide a powerful way to define common behaviors across different types. But what happens when you need to build upon existing typeclasses? Today, we're introducing typeclass extension.

Typeclasses and Generic Inductive Types

Kevin Lacker
Generalist

Since launching the Acorn beta, we've heard consistent feedback from mathematicians that they need a powerful type system to represent their favorite area of mathematics.

Today, we're releasing two big improvements to Acorn's type system. The first is typeclasses.

Generics

Kevin Lacker
Generalist

We've deployed a new version of the Acorn Prover, 0.0.5, with support for a commonly requested feature: generic types. For example, the standard library now has a Pair structure:

structure Pair[T, U] {
first: T
second: U
}