BlockstreamResearch / simfony

Rust-like high-level language that compiles down to Simplicity bytecode. Work in progress.
19 stars 6 forks source link

Explicit types #41

Closed uncomputable closed 3 months ago

uncomputable commented 3 months ago

Require explicit types in each let statement.

Simfony needs to know the type of each expression for proper compilation and error reporting. The simplest approach is manifest typing where the programmer provides the type of each expression. The Simfony compiler can do equality checks and simple pattern matching to check the types.