rune-rs / rune

An embeddable dynamic programming language for Rust.
https://rune-rs.github.io
Apache License 2.0
1.76k stars 88 forks source link

Feature request: type annotations #673

Open mscofield0 opened 8 months ago

mscofield0 commented 8 months ago

Type annotations would be ideal, but I don't see it implemented yet in Rune. If there are comments, I could always do /*: Type*/, but uh, yuck.

udoprog commented 8 months ago

Related: #23, #633

udoprog commented 8 months ago

The intent is to move towards a gradual typing system, where types can be required at compile time if needed. If type annotations are present and enforced, that could also lead to new forms of optimization.