Settings

Theme

Brief Lang

github.com

3 points by usmanmehmood55 6 days ago · 1 comment

Reader

usmanmehmood55OP 6 days ago

Brief, an experimental declarative language built around contract-enforced state transitions.

The language models programs as transactions with preconditions and postconditions. Instead of writing control flow directly, you describe valid state transitions, and the compiler is supposed to verify that the transaction satisfies its contract.

It also has, among other variants, an "Embedded Brief" variant, for embedded systems. Which in a lot of cases are state machines, so it seems like a nice fit on the surface.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection