Idea for pattern matching
This commit is contained in:
parent
4a1987b5a2
commit
d824b8d6ef
8
TODO.md
8
TODO.md
@ -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 )
|
||||||
|
Loading…
Reference in New Issue
Block a user