3 ms·
> Perhaps an interesting idea would be to have the type at the end of the expression. Like so: > val x = "hello": String Rust has had exactly this (so-call
by Sharlin 7y ago
> Perhaps an interesting idea would be to have the type at the end of the expression. Like so:
> val x = "hello": String
Rust has had exactly this (so-called type ascription) for a while in nightly, but it's not stabilized yet due to some unresolved issues.
- lliamander 7y agoGood to know!