From d824b8d6efc53bd7b42445d5ae68cbc3b8263abf Mon Sep 17 00:00:00 2001 From: greg Date: Thu, 24 Oct 2019 03:09:17 -0700 Subject: [PATCH] Idea for pattern matching --- TODO.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/TODO.md b/TODO.md index 8ed4158..b735e33 100644 --- a/TODO.md +++ b/TODO.md @@ -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 )