BlockstreamResearch / simfony

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

Type module #42

Closed uncomputable closed 3 months ago

uncomputable commented 3 months ago

Move types into their separate module. Rename Type to ResolvedType to better reflect its function in face of future aliased types. Introduce StructuralType to represent Simplicity types in the code base. Implement From and TryFrom to inter-type conversions. Introduce TypeInner to handle type primitives of both resolved and future aliased types.