![]() The original goal for this commit was to allow casting from Data on patterns without annotation. For example, given some custom type 'OrderDatum': ``` expect OrderDatum { requested_handle, destination, .. }: OrderDatum = datum ``` would work fine, but: ``` expect OrderDatum { requested_handle, destination, .. } = datum ``` Yet, the annotation feels unnecessary at this point because type can be inferred from the pattern itself. So this commit allows, whenever possible (ie when the pattern is neither a discard nor a var), to infer the type from a pattern. Along the way, I also found a couple of weird behaviours surrounding this kind of assignments, in particular in combination with let. I'll highlight those in the next PR (#979). |
||
---|---|---|
.github | ||
benchmarks | ||
crates | ||
examples | ||
.editorconfig | ||
.gitattributes | ||
.gitignore | ||
CHANGELOG.md | ||
CONTRIBUTING.md | ||
Cargo.lock | ||
Cargo.toml | ||
LICENSE | ||
README.md | ||
flake.lock | ||
flake.nix |
README.md
Getting Started
Hello, World!
Wanna get started right-away? Complete the Hello, World! tutorial!
Contributing
Want to contribute? See CONTRIBUTING.md to know how.
Changelog
Be on top of any updates using the CHANGELOG and the Project Tracking.
Stats
[!NOTE]
The name comes from Howard Aiken, an American physicist and a pioneer in computing.