Idea for pattern matching

This commit is contained in:
greg 2019-10-24 03:09:17 -07:00
parent 4a1987b5a2
commit d824b8d6ef
1 changed files with 8 additions and 0 deletions

View File

@ -1,5 +1,13 @@
# TODO items
-use 'let' sigil in patterns for variables :
```
q is MyStruct(let a, Chrono::Trigga) then {
}
```
## General code cleanup
- I think I can restructure the parser to get rid of most instances of expect!, at least at the beginning of a rule
DONE -experiment with storing metadata via ItemIds on AST nodes (cf. https://rust-lang.github.io/rustc-guide/hir.html, https://github.com/rust-lang/rust/blob/master/src/librustc/hir/mod.rs )