Idea for pattern matching

This commit is contained in:
greg 2019-10-24 03:09:17 -07:00
parent 4a1987b5a2
commit d824b8d6ef

View File

@ -1,5 +1,13 @@
# TODO items # TODO items
-use 'let' sigil in patterns for variables :
```
q is MyStruct(let a, Chrono::Trigga) then {
}
```
## General code cleanup ## 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 - 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 ) 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 )